Open jaysun91 opened 4 years ago
If you also set Flags().SortFlags to false, even without defining local flags, then the sorting will be disabled
...
c.Flags().SortFlags = false
pFlags := c.PersistentFlags
...
This issue is being marked as stale due to a long period of inactivity
Hey :wave: any plans around fixing this issue?
It looks like the disable ordering feature is not working with commands with persistent flags only. But works fine if commands have local flags or both local and persistent flags.
I have a root command with only persistent flags. And even I set
SortFlags = false
, the command still prints the flags in order.And I got