[Gd-chatter] r10994 - trunk/src/common/getopt

cgay at gwydiondylan.org cgay at gwydiondylan.org
Mon Nov 27 06:28:42 CET 2006


Author: cgay
Date: Mon Nov 27 06:28:38 2006
New Revision: 10994

Modified:
   trunk/src/common/getopt/defargparser.dylan
Log:
job: minor
* Fixed synopsis example comment to show how to include a docstring
  for an option.  (It has really bizarre syntax.)
* Added some TODO comments.


Modified: trunk/src/common/getopt/defargparser.dylan
==============================================================================
--- trunk/src/common/getopt/defargparser.dylan	(original)
+++ trunk/src/common/getopt/defargparser.dylan	Mon Nov 27 06:28:38 2006
@@ -3,6 +3,13 @@
 authors: David Lichteblau <lichteblau at fhtw-berlin.de>
 copyright: see below
 
+// todo -- There is no error signalled if two options have the same short name
+//         (or long name, I assume).  --cgay 2006.11.27
+// todo -- There is no indication of default values in the generated synopsis,
+//         and the syntax for specifying "syntax" and docstring is bizarre at
+//         best.  --cgay 2006.11.27
+
+
 //======================================================================
 //
 //  Copyright (c) 1999-2001 David Lichteblau
@@ -149,8 +156,8 @@
 //           synopsis print-synopsis,
 //             usage: "test [options] file...",
 //             description: "Stupid test program doing nothing with the args.";
-//        
-//           ...
+//           option verbose?, "", "Explanation", short: "v", long: "verbose";
+//           option other, "", "foo", long: "other-option";
 //         end argument-parser;
 //
 //    Then print-synopsis(parser, stream) will print something like:



More information about the chatter mailing list