mirror of
https://github.com/minio/mc.git
synced 2025-11-28 08:03:56 +03:00
generalize input for ctx.Command.Name (#4338)
This commit is contained in:
@@ -72,7 +72,7 @@ EXAMPLES:
|
||||
// checkReplicateRemoveSyntax - validate all the passed arguments
|
||||
func checkReplicateRemoveSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) != 1 {
|
||||
showCommandHelpAndExit(ctx, "rm", 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
rmAll := ctx.Bool("all")
|
||||
rmForce := ctx.Bool("force")
|
||||
|
||||
Reference in New Issue
Block a user