update json flag help to indicate the correct format (#3411)

some users may get confused without reading the docs
might end up assuming that --json is a full JSON document.
This commit is contained in:
Harshavardhana
2020-09-21 00:43:41 -07:00
committed by GitHub
parent 0449df8887
commit ce0c109ae3
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ SCAN MODES:
normal (default): Heal objects which are missing on one or more disks.
deep : Heal objects which are missing or with silent data corruption on one or more disks.
EXAMPLES:
DEPRECATED
DEPRECATED:
MinIO server now supports auto-heal, this command will be removed in future.
`,
}
+1 -1
View File
@@ -44,7 +44,7 @@ var globalFlags = []cli.Flag{
},
cli.BoolFlag{
Name: "json",
Usage: "enable JSON formatted output",
Usage: "enable JSON lines formatted output",
},
cli.BoolFlag{
Name: "debug",
+1 -1
View File
@@ -46,7 +46,7 @@ var updateCmd = cli.Command{
Flags: []cli.Flag{
cli.BoolFlag{
Name: "json",
Usage: "enable JSON formatted output",
Usage: "enable JSON lines formatted output",
},
},
CustomHelpTemplate: `Name:
+1 -1
View File
@@ -265,7 +265,7 @@ mc: <DEBUG> Response Time: 1.220112837s
```
### Option [--json]
JSON option enables parseable output in [JSON lines](http://jsonlines.org/) format.
JSON option enables parseable output in [JSON lines](http://jsonlines.org/), also called as [NDJSON](http://ndjson.org/) format.
*Example: List all buckets from MinIO play service.*