Skip to content

Commit ffe925c

Browse files
committed
Disable command sorting
1 parent 212a185 commit ffe925c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/stories.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ var storiesCmd = &cobra.Command{
2626
}
2727

2828
func init() {
29+
cobra.EnableCommandSorting = false
30+
2931
rootCmd.AddCommand(storiesCmd)
30-
3132
storiesCmd.PersistentFlags().BoolVar(&trending, "hot", false, "get hot trending stories")
3233
}

0 commit comments

Comments
 (0)