You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously I was using "github.com/urfave/cli" v1 and when I entered --help it displayed the flags in the order I filled them in, but when I used v2 all the flags were automatically sorted, how can I stop the automatic sorting? I didn't find any place where I can set it.
The text was updated successfully, but these errors were encountered:
@FGYFFFF This behavior was introduced recently in the v2 series via flag category support. Given that there's an expectation that the default sort order should not be by name, I'd like to explore reverting to the previous behavior. Is this something you're willing and able to contribute?
Looking at this again, I think the change to automatically sorting the flags is arguably a regression because the current documentation claims that the default ordering is not sorted.:
Previously I was using "github.com/urfave/cli" v1 and when I entered --help it displayed the flags in the order I filled them in, but when I used v2 all the flags were automatically sorted, how can I stop the automatic sorting? I didn't find any place where I can set it.
The text was updated successfully, but these errors were encountered: