From 9bb980e9de1ec3764069ae70baf0c2458e7c35a4 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 10 Sep 2018 18:16:16 +0200 Subject: ls: support expressing a query with flags as well --- commands/commands.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands/commands.go') diff --git a/commands/commands.go b/commands/commands.go index 51aa4e9a..44a08da0 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -50,6 +50,8 @@ var commandsCmd = &cobra.Command{ func init() { RootCmd.AddCommand(commandsCmd) + commandsCmd.Flags().SortFlags = false + commandsCmd.Flags().BoolVarP(&commandsDesc, "pretty", "p", false, "Output the command description as well as Markdown compatible comment", ) -- cgit