COIN-OR::LEMON - Graph Library

Opened 10 years ago

Last modified 7 weeks ago

#287 new enhancement

Specify argument order for ArgParser

Reported by: Peter Kovacs Owned by: Alpar Juttner
Priority: major Milestone: LEMON 1.5 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

I think it would be nice if the order in which ArgParser prints out the arguments and their documentations would be able to be changed. A good example is lgf-gen, for which a lot of command line arguments are printed and the alphabetical order makes them more difficult to overview.

I suggest two options: alphabetical order and the order in which the arguments were specified. The first one could be the default, but the second one could be selected as an alternative.

Change History (5)

comment:1 in reply to:  description ; Changed 10 years ago by Alpar Juttner

Replying to kpeter:

I suggest two options: alphabetical order and the order in which the arguments were specified. The first one could be the default, but the second one could be selected as an alternative.

This solution would need fair amount of coding as the options are stored in an std::map which does not preserve the order in which the items are added to is.

On the other hand, I have an old plan to make it possible to define groups of options which would be printed together along with a help text describing the group itself. I think this would solve your problem, as well.

comment:2 in reply to:  1 Changed 9 years ago by Peter Kovacs

Replying to alpar:

On the other hand, I have an old plan to make it possible to define groups of options which would be printed together along with a help text describing the group itself. I think this would solve your problem, as well.

Yes, it would. I'm looking forward to this solution.

comment:3 Changed 9 years ago by Peter Kovacs

Milestone: LEMON 1.2 releaseLEMON 1.3 release

comment:4 Changed 6 years ago by Alpar Juttner

Milestone: LEMON 1.3 releaseLEMON 1.4 release

comment:5 Changed 7 weeks ago by Alpar Juttner

Milestone: LEMON 1.4 releaseLEMON 1.5 release
Note: See TracTickets for help on using tickets.