Add log-level option for all CLI commands

This commit is contained in:
Brett Sun 2017-02-24 13:31:07 +01:00 committed by Sylvain Bellemare
parent 43f779a18b
commit c0498abed3

View File

@ -151,6 +151,10 @@ base_parser.add_argument('-c', '--config',
help='Specify the location of the configuration file '
'(use "-" for stdout)')
base_parser.add_argument('-l', '--log-level',
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'],
help='Log level')
base_parser.add_argument('-y', '--yes', '--yes-please',
action='store_true',
help='Assume "yes" as answer to all prompts and run '