From: Mike B. <mi...@bo...> - 2007-07-29 14:32:14
|
Michael Geng wrote: > Hi Mike, > > I think one of the most obvious missing features of Genparse is that > it doesn't yet support optional arguments. getopt_long supports > optional arguments however. > > I want to implement it by allowing an optional * both after the > short and the long option. > > Examples: > > o* / oparam* string "Both short and long option have an optional argument." > p* / pparam string "Short option has an optional argument," > "long option requires an argument." > q / qparam* string "Short option reqires an argument," > "long option has an optional argument." > > Michael > Does this mean that these arguments could be both flag as well as parameterized? -- Mike Borella http://www.borella.net/mike |