It is not clear to users in the output of `ceph --help` that
the yaml formatter option is only valid for orch commands.
Before:
-f {json,json-pretty,xml,xml-pretty,plain,yaml}, --format {json,json-pretty,xml,xml-pretty,plain,yaml}
After:
-f {json,json-pretty,xml,xml-pretty,plain,yaml}, --format {json,json-pretty,xml,xml-pretty,plain,yaml}
Note: yaml is only valid for orch commands
Fixes: https://tracker.ceph.com/issues/53895
Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit
9fecbaf40c7e68f3eeefb0d90c7296c08c28ef2a)
help="make less verbose")
parser.add_argument('-f', '--format', choices=['json', 'json-pretty',
- 'xml', 'xml-pretty', 'plain', 'yaml'], dest='output_format')
+ 'xml', 'xml-pretty', 'plain', 'yaml'],
+ help="Note: yaml is only valid for orch commands", dest='output_format')
parser.add_argument('--connect-timeout', dest='cluster_timeout',
type=int,