💅 Sentence-case for --help and --version flags
This commit is contained in:
parent
b8a0754a03
commit
854a4b3fdf
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue