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:
@@ -76,7 +76,7 @@ EXAMPLES:
|
||||
// checkEventRemoveSyntax - validate all the passed arguments
|
||||
func checkEventRemoveSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) == 0 || len(ctx.Args()) > 2 {
|
||||
showCommandHelpAndExit(ctx, "remove", 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
if len(ctx.Args()) == 1 && !ctx.Bool("force") {
|
||||
fatalIf(probe.NewError(errors.New("")), "--force flag needs to be passed to remove all bucket notifications.")
|
||||
|
||||
Reference in New Issue
Block a user