mirror of
https://github.com/minio/mc.git
synced 2025-11-12 01:02:26 +03:00
generalize input for ctx.Command.Name (#4338)
This commit is contained in:
@@ -63,7 +63,7 @@ func supportedJobTypes() string {
|
||||
// checkBatchGenerateSyntax - validate all the passed arguments
|
||||
func checkBatchGenerateSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) != 2 {
|
||||
showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user