From ce0c109ae3e6647cbee9b78e0760f0313e18559d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 21 Sep 2020 00:43:41 -0700 Subject: [PATCH] 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. --- cmd/admin-heal.go | 4 ++-- cmd/flags.go | 2 +- cmd/update-main.go | 2 +- docs/minio-client-complete-guide.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/admin-heal.go b/cmd/admin-heal.go index b50ab320..5a75a35a 100644 --- a/cmd/admin-heal.go +++ b/cmd/admin-heal.go @@ -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. `, } diff --git a/cmd/flags.go b/cmd/flags.go index 944ba8e5..1fc858c1 100644 --- a/cmd/flags.go +++ b/cmd/flags.go @@ -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", diff --git a/cmd/update-main.go b/cmd/update-main.go index e8871691..8793d2df 100644 --- a/cmd/update-main.go +++ b/cmd/update-main.go @@ -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: diff --git a/docs/minio-client-complete-guide.md b/docs/minio-client-complete-guide.md index af6ffeaa..477e9d9b 100644 --- a/docs/minio-client-complete-guide.md +++ b/docs/minio-client-complete-guide.md @@ -265,7 +265,7 @@ mc: 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.*