diff --git a/README.md b/README.md index 15f8398..22e228b 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ Flags: --[no-]extra-arches-show-default Show default extra arch name. -d, --output="build" Output dir path. + -f, --output-format=OUTPUT-FORMAT + Output file name format. -o, --name=NAME Output binary file name. --divider="-" Divider in name. diff --git a/README_CN.md b/README_CN.md index b8b939b..590d37a 100644 --- a/README_CN.md +++ b/README_CN.md @@ -33,6 +33,8 @@ Flags: --[no-]extra-arches-show-default Show default extra arch name. -d, --output="build" Output dir path. + -f, --output-format=OUTPUT-FORMAT + Output file name format. -o, --name=NAME Output binary file name. --divider="-" Divider in name. diff --git a/internal/global/commands.go b/internal/global/commands.go index fef75e2..f08a975 100644 --- a/internal/global/commands.go +++ b/internal/global/commands.go @@ -27,7 +27,7 @@ func NewCommands(version string) *kingpin.Application { app.Flag("extra-arches-show-default", "Show default extra arch name.").BoolVar(&Config.ExtraArchesShowDefault) app.Flag("output", "Output dir path.").Short('d').Default("build").StringVar(&Config.Output) - app.Flag("output-format", "Output file name format").Short('f').EnumVar(&Config.OutputFormat, "", "post") + app.Flag("output-format", "Output file name format.").Short('f').EnumVar(&Config.OutputFormat, "", "post") app.Flag("name", "Output binary file name.").Short('o').StringVar(&Config.Name) app.Flag("divider", "Divider in name.").Default("_").StringVar(&Config.Divider) app.Arg("target", "Target package.").Required().StringVar(&Config.Target)