Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option sort in usage help should ignore prefix #697

Closed
remkop opened this issue May 18, 2019 · 0 comments
Closed

Option sort in usage help should ignore prefix #697

remkop opened this issue May 18, 2019 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented May 18, 2019

Currently, options that only have a long name (and do not have a short name) are always shown before options with a short name. For example:

Usage: git commit [--squash=<commit>] [-m=<arg0>] [<file>...]
      [<file>...]
      --squash=<commit>
  -m, --message=<arg0>

Instead, they should be inserted in the list by their first non-prefix letter.

Should be:

Usage: git commit [-m=<arg0>] [--squash=<commit>] [<file>...]
      [<file>...]
  -m, --message=<arg0>
      --squash=<commit>
@remkop remkop added this to the 4.0-beta-1 milestone May 18, 2019
remkop added a commit that referenced this issue May 18, 2019
…ng options without short name should be inserted alphabetically, instead of always appear at the top.
@remkop remkop closed this as completed May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant