-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Flags are alphabetically sorted when using categories #1914
Comments
@NilsJPWerner Yes that is the current behaviour. I agree it would be better to make it configurable(i.e sort or not) but at this point we arent adding any features to v2. Yes this is a bug but its not "security critical" so most likely we wont fix. We can do this for v3 . Would you like to make a PR for v3 ? |
Is v3 substantially different? |
Not really |
@dearchap does this still need to be worked on? |
Yes only in v3 |
do you have any thoughts on how we want to configure this? |
add a SortCategories field to Command |
My urfave/cli version is
github.com/urfave/cli/v2 v2.27.1
Checklist
Dependency Management
Describe the bug
The docs state that flags are not sorted by default. However when using categories the flags within each category is sorted alphabetically. Furthermore the categories are also sorted alphabetically.
To reproduce
Observed behavior
Expected behavior
The text was updated successfully, but these errors were encountered: