💅 Sentence-case for --help and --version flags

This commit is contained in:
Mislav Marohnić 2019-11-27 17:26:27 +01:00
parent b8a0754a03
commit 854a4b3fdf

View file

@ -19,6 +19,8 @@ var BuildDate = "YYYY-MM-DD"
func init() {
RootCmd.Version = fmt.Sprintf("%s (%s)", Version, BuildDate)
RootCmd.PersistentFlags().StringP("repo", "R", "", "Current GitHub repository")
RootCmd.PersistentFlags().Bool("help", false, "Show help for command")
RootCmd.Flags().Bool("version", false, "Print gh version")
// TODO:
// RootCmd.PersistentFlags().BoolP("verbose", "V", false, "enable verbose output")