mainGNU Gengetopt - Support: sr #108238, Feature Request - options...

 
 

sr #108238: Feature Request - options simultaneously member of an group and a mode

Submitter:  None
Submitted:  Sun 20 Jan 2013 07:48:44 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  4 - Important Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 20 Jan 2013 07:48:44 PM UTC, original submission:  

Hi gengetopt guys :)

Both groups and modes are powerful and useful.

But it seems ( at least to me ) that bringing the idea to the logical limit was to allow a certain option to be simultaneously a member of a mode and a group. This might be the simplest way to support "mutually exclusive groups of mutually exclusive options".

For example, I can't see how to have a certain mode of operation, where I can only select one option from among a group. To be fully expressive, an option would need to be in the cross product of a mode and a group, not either a mode or a group.

What would be your analysis? Any chance of adding this feature? I've marked it "4" because there is, of course, a workaround, but it is suboptimal, i.e. gengetopt related functionality of keeping options mutually exclusive would leak into the main program.

Thanks for your contributions to gengetopt,

Don

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code