mirror of
https://github.com/minio/mc.git
synced 2025-11-26 20:03:05 +03:00
generalize input for ctx.Command.Name (#4338)
This commit is contained in:
@@ -70,7 +70,7 @@ EXAMPLES:
|
||||
// checkReplicateResyncStartSyntax - validate all the passed arguments
|
||||
func checkReplicateResyncStartSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) != 1 {
|
||||
showCommandHelpAndExit(ctx, "start", 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
if ctx.String("remote-bucket") == "" {
|
||||
fatal(errDummy().Trace(), "--remote-bucket flag needs to be specified.")
|
||||
|
||||
Reference in New Issue
Block a user