Shorter colors flag

This commit is contained in:
Mike Farah 2020-02-28 15:57:05 +11:00
parent a4fa8f1341
commit 5c117204fa

View File

@ -43,7 +43,7 @@ func New() *cobra.Command {
rootCmd.PersistentFlags().BoolVarP(&prettyPrint, "prettyPrint", "P", false, "pretty print")
rootCmd.PersistentFlags().IntVarP(&indent, "indent", "I", 2, "sets indent level for output")
rootCmd.Flags().BoolVarP(&version, "version", "V", false, "Print version information and quit")
rootCmd.PersistentFlags().BoolVarP(&colorsEnabled, "colorsEnabled", "C", false, "enable colors")
rootCmd.PersistentFlags().BoolVarP(&colorsEnabled, "colors", "C", false, "print using colors")
rootCmd.AddCommand(
createReadCmd(),