From 0ced979879d4646fedf707aa038a9031b293dcbe Mon Sep 17 00:00:00 2001 From: jichangjun Date: Mon, 29 Jun 2020 19:23:38 +0800 Subject: [PATCH] goc build: provide short flag for output option --- cmd/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/build.go b/cmd/build.go index cf86204..099d472 100644 --- a/cmd/build.go +++ b/cmd/build.go @@ -58,7 +58,7 @@ var buildOutput string func init() { 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) }