Options better be optional by default

- Tong - <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.