mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-10 22:08:48 +01:00
shell: return flag parse errors from s3.bucket.create (#12544)
This commit is contained in:
1 parent
5863e32318
commit
017e42633f
2 files changed
+12
-1
No files matched your search
@@ -59,7 +59,7 @@ func (c *commandS3BucketCreate) Do(args []string, commandEnv *CommandEnv, writer
|
||||
bucketOwner := bucketCommand.String("owner", "", "bucket owner identity name (for S3 IAM authentication)")
|
||||
withLock := bucketCommand.Bool("withLock", false, "enable Object Lock on the bucket (requires and enables versioning)")
|
||||
if err = bucketCommand.Parse(args); err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
if *bucketName == "" {
|
||||
|
||||
Reference in new issue
Block a user