@@ -6,6 +6,7 @@ copyright: See LICENSE file in this distribution.
6
6
// ======================================================================
7
7
// The All-Singing, All-Dancing Argument Parser
8
8
// ======================================================================
9
+ //
9
10
// Ole J. Tetlie wrote an option parser, and it was pretty good. But it
10
11
// didn't support all the option types required by d2c, and besides, we
11
12
// felt a need to overdo something.
@@ -29,20 +30,12 @@ copyright: See LICENSE file in this distribution.
29
30
// All the tokens on that command line are arguments. "-x" and "--y"
30
31
// are options, and "bar" is a parameter. "baz" is a positional argument.
31
32
32
- // todo -- There is no indication of default values in the generated synopsis,
33
- // and the syntax for specifying "syntax" and docstring is bizarre at
34
- // best. --cgay 2006.11.27
35
-
36
33
// TODO(cgay): <choice-option>: --foo=a|b|c (#f as choice means option
37
34
// value is optional?)
38
35
39
36
// TODO(cgay): Add a required: (or required?: ?) init keyword that
40
37
// makes non-positional args required else an error is generated.
41
38
42
- // TODO(cgay): This error sucks: "<unknown-option>" is not present as
43
- // a key for {<string-table>: size 12}. How about "<unknown-option>
44
- // is not a recognized command-line option." See next item.
45
-
46
39
// TODO(cgay): With an option that has negative options (e.g.,
47
40
// --verbose and --quiet in the same option) just show the positive
48
41
// option in the synopsis but add a comment to the doc about the
0 commit comments