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:
@@ -109,7 +109,7 @@ EXAMPLES:
|
||||
func checkAdminBucketRemoteEditSyntax(ctx *cli.Context) {
|
||||
argsNr := len(ctx.Args())
|
||||
if argsNr > 2 || argsNr == 0 {
|
||||
showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
if !ctx.IsSet("arn") {
|
||||
fatalIf(errInvalidArgument().Trace(ctx.Args()...), "--arn flag needs to be set")
|
||||
|
||||
Reference in New Issue
Block a user