From: Mike B. <mi...@bo...> - 2007-07-08 19:51:29
|
Very cool. Looks good to me. Mike Michael Geng wrote: > Hi Mike, > > the ls command has a parameter --block-size. If you invoke > ls --help you see the following description: > > ... > --block-size=SIZE use SIZE-byte blocks > ... > > I want to make it possible to add such an optional designation > like "=SIZE" in the ls example above after a long option in the > Genparse file which can then be referred to in the following > descriptive text on the help screen. > > In the genparse file the following would be allowed: > > NONE / block-size=SIZE int "use SIZE-byte blocks" > > The corresponding line in the genparse style help screen would > look like this > > [ --block-size=SIZE ] (type=INTEGER) > use SIZE-byte blocks > > This optional descriptive name could be stored in a new string > _opt_name to the Clparam struct. It would only be used in the > usage() function, nowhere else. And everything stays compatible > because giving an opt_name string in the Genparse file is of > course optional. > > Michael > -- Mike Borella mike at borella dot net http://www.borella.net/mike |