mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Dont sort flags by default
This commit is contained in:
@@ -222,6 +222,8 @@ func prettify(text string) string {
|
||||
val = val[idx:]
|
||||
}
|
||||
return bold_fmt(val)
|
||||
case "opt":
|
||||
return bold_fmt(val)
|
||||
case "yellow":
|
||||
return yellow_fmt(val)
|
||||
case "blue":
|
||||
@@ -348,6 +350,8 @@ func CreateCommand(cmd *cobra.Command) *cobra.Command {
|
||||
if cmd.Run == nil {
|
||||
cmd.Run = SubCommandRequired
|
||||
}
|
||||
cmd.PersistentFlags().SortFlags = false
|
||||
cmd.Flags().SortFlags = false
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user