mirror of
https://github.com/minio/mc.git
synced 2025-11-10 13:42:32 +03:00
generalize input for ctx.Command.Name (#4338)
This commit is contained in:
@@ -106,7 +106,7 @@ func checkAliasSetSyntax(ctx *cli.Context, accessKey string, secretKey string, d
|
||||
argsNr := len(args)
|
||||
|
||||
if argsNr == 0 {
|
||||
showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
|
||||
if argsNr > 4 || argsNr < 2 {
|
||||
|
||||
Reference in New Issue
Block a user