summaryrefslogtreecommitdiff
path: root/examples/howto-parse-args.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /examples/howto-parse-args.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (diff)
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files - update .fl files and generated files accordingly - replace 'http://www.fltk.org' URL's with 'https://...' - replace bug report URL 'str.php' with 'bugs.php' - remove trailing whitespace - fix other whitespace errors flagged by Git - add and/or fix missing or wrong standard headers - convert tabs to spaces in all source files The only relevant code changes are in the fluid/ folder where some .fl files and other source files were used to generate the '$Id' headers and footers.
Diffstat (limited to 'examples/howto-parse-args.cxx')
-rw-r--r--examples/howto-parse-args.cxx16
1 files changed, 5 insertions, 11 deletions
diff --git a/examples/howto-parse-args.cxx b/examples/howto-parse-args.cxx
index 19230cf9f..a95e2a66f 100644
--- a/examples/howto-parse-args.cxx
+++ b/examples/howto-parse-args.cxx
@@ -1,8 +1,6 @@
//
-// "$Id$"
-//
// How to parse command line arguments - Duncan Gibson 2010-10-23
-// First posted in http://www.fltk.org/newsgroups.php?gfltk.general+v:31449
+// First posted in https://www.fltk.org/newsgroups.php?gfltk.general+v:31449
//
// Shows how to decode additional command line arguments using Fl::args()
// on top of the "standard" options used by the toolkit itself.
@@ -17,11 +15,11 @@
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
-// http://www.fltk.org/COPYING.php
+// https://www.fltk.org/COPYING.php
//
-// Please report all bugs and problems on the following page:
+// Please see the following page on how to report bugs and issues:
//
-// http://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
#include <stdio.h>
#include <string.h>
@@ -37,7 +35,7 @@ char *optionString = 0;
* If there is a match, 'i' must be incremented by 2 or 1 as appropriate.
* If there is no match, Fl::args() will then call Fl::arg() as fallback
* to try to match the "standard" FLTK parameters.
- *
+ *
* Returns 2 if argv[i] matches with required parameter in argv[i+1],
* returns 1 if argv[i] matches on its own,
* returns 0 if argv[i] does not match.
@@ -87,7 +85,3 @@ int main(int argc, char** argv)
mainWin->show(argc, argv);
return Fl::run();
}
-
-//
-// End of "$Id$".
-//