Skip to content

Commit

Permalink
CLI: improve help message
Browse files Browse the repository at this point in the history
* Specify that the --debug and --trace options affect the logs and not
  the output and where to find the logs.

Bug: T204680
Change-Id: If0a6f5f0e26b5aaa229a6b91601e38e9ae9fbde1
  • Loading branch information
volans- committed Sep 19, 2018
1 parent 65fe744 commit 8aab3c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cumin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ def get_parser():
help=('Do not execute any command, just return the list of matching hosts and exit. '
'[default: False]'))
parser.add_argument('--version', action='version', version='%(prog)s {version}'.format(version=cumin.__version__))
parser.add_argument('-d', '--debug', action='store_true', help='Set log level to DEBUG. [default: False]')
parser.add_argument('-d', '--debug', action='store_true',
help=('Set log level to DEBUG. See also log_file in the configuration. [default: False]'))
parser.add_argument('--trace', action='store_true',
help=('Set log level to TRACE, a custom logging level intended for development debugging. '
'[default: False]'))
help=('Set log level to TRACE, a custom logging level intended for development debugging. See '
'also log_file in the configuration. [default: False]'))
parser.add_argument('hosts', metavar='HOSTS_QUERY', help='Hosts selection query')
parser.add_argument('commands', metavar='COMMAND', nargs='*',
help='Command to be executed. If no commands are specified, --dry-run is set.')
Expand Down

0 comments on commit 8aab3c1

Please sign in to comment.