Skip to content

Commit

Permalink
add shorthand for output flag in cmd (#1161)
Browse files Browse the repository at this point in the history
Signed-off-by: Yussuf Shaikh <[email protected]>
  • Loading branch information
yussufsh authored Mar 20, 2023
1 parent c767ecd commit cface05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/capibmadm/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ type options struct {
// AddCommonFlags will add common flags to the cli.
func AddCommonFlags(cmd *cobra.Command) {
GlobalOptions.Output = printer.PrinterTypeTable
cmd.Flags().Var(&GlobalOptions.Output, "output", "The output format of the results. Supported printer types: table, json")
cmd.Flags().VarP(&GlobalOptions.Output, "output", "o", "The output format of the results. Supported printer types: table, json")
}

0 comments on commit cface05

Please sign in to comment.