Opened 17 years ago
Last modified 7 years 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 follow-up: 2 Changed 16 years ago by
comment:2 Changed 16 years ago by
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 16 years ago by
| Milestone: | LEMON 1.2 release → LEMON 1.3 release |
|---|
comment:4 Changed 13 years ago by
| Milestone: | LEMON 1.3 release → LEMON 1.4 release |
|---|
comment:5 Changed 7 years ago by
| Milestone: | LEMON 1.4 release → LEMON 1.5 release |
|---|


Replying to kpeter:
This solution would need fair amount of coding as the options are stored in an
std::mapwhich 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.