COIN-OR::LEMON - Graph Library

Opened 9 years ago

Last modified 5 years ago

#287 new enhancement

Specify argument order for ArgParser

Reported by: kpeter Owned by: alpar
Priority: major Milestone: LEMON 1.4 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 (4)

comment:1 in reply to: ↑ description ; follow-up: Changed 9 years ago by alpar

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 8 years ago by kpeter

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 8 years ago by kpeter

  • Milestone changed from LEMON 1.2 release to LEMON 1.3 release

comment:4 Changed 5 years ago by alpar

  • Milestone changed from LEMON 1.3 release to LEMON 1.4 release
Note: See TracTickets for help on using tickets.