spf13/cobra

I'd like to: -o wide -o json

lknite opened this issue · 1 comments

I'd like to mirror how 'kubectl' allows you to specify -o json, or -o yaml, to chose the format to output.

Additionally, it allows -o wide to display additional information.

How can I allow (and how to see they were both specified) both '-o wide' and say '-o json' on the same command line?

Currently have:

getCmd.Flags().StringVarP(&Output, "output", "o", "", "Output format. One of: (json, yaml), and/or 'wide'.")

nm, looks like kubectl can only handle one