Merge pull request #49 from CarlJi/0627

goc build: provide short flag for output option
This commit is contained in:
qiniu-bot 2020-06-29 19:28:38 +08:00 committed by GitHub
commit f8b8fdb014
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,7 @@ var buildOutput string
func init() { func init() {
addBuildFlags(buildCmd.Flags()) addBuildFlags(buildCmd.Flags())
buildCmd.Flags().StringVar(&buildOutput, "output", "", "it forces build to write the resulting executable to the named output file") buildCmd.Flags().StringVarP(&buildOutput, "output", "o", "", "it forces build to write the resulting executable to the named output file")
rootCmd.AddCommand(buildCmd) rootCmd.AddCommand(buildCmd)
} }