ui: consistenly use "flag" instead of "option" in error messages (#2325)

This commit is contained in:
poornas
2017-12-06 16:00:10 +05:30
committed by Nitish Tiwari
parent 1fd03fb81f
commit 399187c4fb
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ func checkAdminLockClearSyntax(ctx *cli.Context) {
}
fatalIf(errDummy().Trace(),
"Clearing locks requires --force option. This operation is "+
"Clearing locks requires --force flag. This operation is "+
"*IRREVERSIBLE*. Please review carefully before"+
" performing this *DANGEROUS* operation.")
}
+1 -1
View File
@@ -127,7 +127,7 @@ func checkCopySyntaxTypeC(srcURLs []string, tgtURL string, isRecursive bool) {
}
if srcContent.Type.IsDir() && !isRecursive {
fatalIf(errInvalidArgument().Trace(srcURL), "To copy a folder requires --recursive option.")
fatalIf(errInvalidArgument().Trace(srcURL), "To copy a folder requires --recursive flag.")
}
// Check target.
+1 -1
View File
@@ -158,7 +158,7 @@ func checkRmSyntax(ctx *cli.Context) {
"This operation results in site-wide removal of buckets and objects. If you are really sure, retry this command with ‘--dangerous’ and ‘--force’ flags.")
}
fatalIf(errDummy().Trace(),
"Removal requires --force option. This operation is *IRREVERSIBLE*. Please review carefully before performing this *DANGEROUS* operation.")
"Removal requires --force flag. This operation is *IRREVERSIBLE*. Please review carefully before performing this *DANGEROUS* operation.")
}
if (isRecursive || isStdin) && isNamespaceRemoval && !isDangerous {
fatalIf(errDummy().Trace(),
+1 -1
View File
@@ -90,7 +90,7 @@ func checkShareDownloadSyntax(ctx *cli.Context) {
fatalIf(errDummy().Trace(expiry.String()), "Expiry cannot be larger than 7 days.")
}
// Validate if object exists only if the `--recursive` option was NOT specified
// Validate if object exists only if the `--recursive` flag was NOT specified
isRecursive := ctx.Bool("recursive")
if !isRecursive {
for _, url := range ctx.Args() {
+1 -1
View File
@@ -101,7 +101,7 @@ func checkShareUploadSyntax(ctx *cli.Context) {
url := newClientURL(targetURL)
if strings.HasSuffix(targetURL, string(url.Separator)) && !isRecursive {
fatalIf(errInvalidArgument().Trace(targetURL),
"Use --recursive option to generate curl command for prefixes.")
"Use --recursive flag to generate curl command for prefixes.")
}
}
}