help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-gengetopt] Options better be optional by default


From: - Tong -
Subject: [help-gengetopt] Options better be optional by default
Date: Sat, 14 Apr 2007 22:05:07 +0000 (UTC)
User-agent: pan 0.119 (Karma Hunters)

Hi, 

Since release 2.17, there is a "required"/"optional" option that specifies
whether defining option must be given or not. 

The current implementation is that if the option is not specified, e.g.,

 option          "long-opt"  - "A long option"  long argoptional

then the defining option is considered as mandatory, shown with 
"--show-required" with release 2.19:

      --long-opt[=LONG]    A long option (mandatory)

I just hope that in such case (when no "required"/"optional" is defined),
the defining option is considered optional by default, instead of mandatory. 

thanks

tong

PS, my gengetopt:

$ gengetopt --ver
GNU gengetopt 2.19.1

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sf.net/techdocs/
  http://xpt.sf.net/tools/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]