mirror of
https://github.com/minio/mc.git
synced 2025-12-08 22:28:28 +03:00
generalize input for ctx.Command.Name (#4338)
This commit is contained in:
@@ -71,7 +71,7 @@ func validateToggleCmdArg(arg string) error {
|
||||
|
||||
func checkToggleCmdSyntax(ctx *cli.Context, cmdName string) (string, string) {
|
||||
if len(ctx.Args()) != 2 {
|
||||
showCommandHelpAndExit(ctx, cmdName, 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
|
||||
arg := ctx.Args().Get(0)
|
||||
|
||||
Reference in New Issue
Block a user