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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16-598c.
    Corresponding source code