long / short options (was Re: start-stop-daemon does not recognise --start)

2007-10-18 Thread Ralf Friedl
Denys Vlasenko wrote: Try this patch. ... Do you think it would be useful to define something like this: #define OPTION_HELP_TEXT(SHORT, LONG, TEXT) SHORT USE_FEATURE_LONG_OPTIONS(LONG) TEXT Then the options could be written as OPTION_HELP_TEXT( -v, , --verbose, Verbose\n) and the middle

Re: long / short options (was Re: start-stop-daemon does not recognise --start)

2007-10-18 Thread Denys Vlasenko
On Thursday 18 October 2007 18:41, Ralf Friedl wrote: Denys Vlasenko wrote: Try this patch. ... Do you think it would be useful to define something like this: #define OPTION_HELP_TEXT(SHORT, LONG, TEXT) SHORT USE_FEATURE_LONG_OPTIONS(LONG) TEXT Then the options could be written as