24 Jul
2007
24 Jul
'07
4:12 p.m.
On Tue, Jul 24, 2007 at 09:02:02AM +0100, Steven Mackenzie wrote:
Very useful to me, thanks!
I'm guessing that the implicit_value is distinct from the default_value, so that the default can be set seperately if the option is completely absent from the command line?
That is the idea. I just tested it, and it appears to work as expected.
My worry would be explaining the different command line syntax for applications with this type of option to my users, but I understand why it is necessary.
Hmm, perhaps you could look at the getopt_long manpage for inspiration. I'm not sure how great my 'name()' method is for generating the usage statement. Ideas welcome. -Bryan