cmd: Fixed a typo – minimum

This commit is contained in:
NoLooseEnds 2018-05-01 10:42:21 +02:00 committed by Nick Craig-Wood
parent 50dc5fe92e
commit a5f1811892

View file

@ -354,7 +354,7 @@ func Run(Retry bool, showStats bool, cmd *cobra.Command, f func() error) {
func CheckArgs(MinArgs, MaxArgs int, cmd *cobra.Command, args []string) { func CheckArgs(MinArgs, MaxArgs int, cmd *cobra.Command, args []string) {
if len(args) < MinArgs { if len(args) < MinArgs {
_ = cmd.Usage() _ = cmd.Usage()
fmt.Fprintf(os.Stderr, "Command %s needs %d arguments mininum\n", cmd.Name(), MinArgs) fmt.Fprintf(os.Stderr, "Command %s needs %d arguments minimum\n", cmd.Name(), MinArgs)
// os.Exit(1) // os.Exit(1)
resolveExitCode(errorNotEnoughArguments) resolveExitCode(errorNotEnoughArguments)
} else if len(args) > MaxArgs { } else if len(args) > MaxArgs {