Skip to content

Commit cface05

Browse files
authored
add shorthand for output flag in cmd (#1161)
Signed-off-by: Yussuf Shaikh <[email protected]>
1 parent c767ecd commit cface05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/capibmadm/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ type options struct {
4242
// AddCommonFlags will add common flags to the cli.
4343
func AddCommonFlags(cmd *cobra.Command) {
4444
GlobalOptions.Output = printer.PrinterTypeTable
45-
cmd.Flags().Var(&GlobalOptions.Output, "output", "The output format of the results. Supported printer types: table, json")
45+
cmd.Flags().VarP(&GlobalOptions.Output, "output", "o", "The output format of the results. Supported printer types: table, json")
4646
}

0 commit comments

Comments
 (0)