mirror of
https://github.com/minio/mc.git
synced 2025-11-26 20:03:05 +03:00
More flags check in replicate add command (#3503)
This commit is contained in:
@@ -105,6 +105,12 @@ func checkReplicateAddSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) != 1 {
|
||||
cli.ShowCommandHelpAndExit(ctx, "add", 1) // last argument is exit code
|
||||
}
|
||||
if ctx.String("arn") == "" {
|
||||
fatal(errDummy().Trace(), "--arn flag needs to be specified.")
|
||||
}
|
||||
if ctx.String("remote-bucket") == "" {
|
||||
fatal(errDummy().Trace(), "--remote-bucket flag needs to be specified.")
|
||||
}
|
||||
}
|
||||
|
||||
type replicateAddMessage struct {
|
||||
|
||||
Reference in New Issue
Block a user