Skip to content

[args] Inconsistent order between allowed and allowedHelp #845

Closed
@incendial

Description

@incendial

Hello,

Not sure if that was ever discussed before, but allowed respects user defined order of options and allowedHelp for some reason sorts them. This sorting behavior is really inconvenient, and, for example, for numbers results in:

    --rule-version=<all>                           Rule version to include (all by default).

          [1.0.0]                                  Included rules added in 1.0.0.
          [1.1.0]                                  Included rules added in 1.1.0.
          [1.10.0]                                 Included rules added in 1.10.0.
          [1.11.0]                                 Included rules added in 1.11.0.
          [1.2.0]                                  Included rules added in 1.2.0.

which is simply confusing for the end user.

Is there an option to make this behaviour configurable or remove it completely? Considering the inconsistency, it seems like giving the user full control over the order of items makes more sense.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions