Open NilsJPWerner opened 1 month ago
@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
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