|
19 | 19 | Examples ([cmd] is assumed to be the command name): |
20 | 20 | - [cmd -flag ](a unit option) |
21 | 21 | - [cmd -int 1 ](an int option with argument [1]) |
22 | | -- [cmd -string foobar ](a string option with argument [\"foobar\"]) |
| 22 | +- [cmd -string foobar ](a string option with argument ["foobar"]) |
23 | 23 | - [cmd -float 12.34 ](a float option with argument [12.34]) |
24 | | -- [cmd a b c ](three anonymous arguments: [\"a\"], [\"b\"], and [\"c\"]) |
| 24 | +- [cmd a b c ](three anonymous arguments: ["a"], ["b"], and ["c"]) |
25 | 25 | - [cmd a b -- c d ](two anonymous arguments and a rest option with |
26 | 26 | two arguments) |
27 | 27 | */ |
@@ -53,9 +53,9 @@ type rec spec = |
53 | 53 |
|
54 | 54 | | /** If the remaining arguments to process |
55 | 55 | are of the form |
56 | | - [[\"-foo\"; \"arg\"] @ rest] where \"foo\" is |
| 56 | + [["-foo"; "arg"] @ rest] where "foo" is |
57 | 57 | registered as [Expand f], then the |
58 | | - arguments [f \"arg\" @ rest] are |
| 58 | + arguments [f "arg" @ rest] are |
59 | 59 | processed. Only allowed in |
60 | 60 | [parse_and_expand_argv_dynamic]. */ |
61 | 61 | Expand(string => array<string>) |
@@ -84,7 +84,7 @@ type anon_fun = string => unit |
84 | 84 | list. |
85 | 85 |
|
86 | 86 | For the user to be able to specify anonymous arguments starting with a |
87 | | - [-], include for example [(\"-\", String anon_fun, doc)] in [speclist]. |
| 87 | + [-], include for example [("-", String anon_fun, doc)] in [speclist]. |
88 | 88 |
|
89 | 89 | By default, [parse] recognizes two unit options, [-help] and [--help], |
90 | 90 | which will print to standard output [usage_msg] and the list of |
|
0 commit comments