help-gengetopt
[Top][All Lists]
Advanced

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

Re: [help-gengetopt] Options better be optional by default


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] Options better be optional by default
Date: Sun, 15 Apr 2007 17:23:15 +0000
User-agent: Icedove 1.5.0.10 (X11/20070329)

Lorenzo Bettini wrote:
>> I just hope that in such case (when no "required"/"optional" is defined),
>> the defining option is considered optional by default, instead of mandatory. 
> 
> options have always been mandatory by default in gengetopt and changing
> this would break previous code.
> 
> What I could do is to add a command line argument that permits
> specifying that options are optional by default, what do you think?
> 

I've uploaded a candidate release here:

http://rap.dsi.unifi.it/~bettini/gengetopt-2.20.tar.gz

that includes the option --default-optional that considers all options
as optional (if not explicitly specified otherwise)

please let me know whether this solves the problem

thanks
        Lore

-- 
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




reply via email to

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