mirror of
https://github.com/josegonzalez/python-github-backup.git
synced 2025-12-05 16:18:02 +01:00
Add --log-level command line argument
Support changing the log level to the desired value easily. For example, this is useful to suppress progress messages but keep logging warnings and errors.
This commit is contained in:
@@ -162,6 +162,11 @@ def parse_args(args=None):
|
||||
default='.',
|
||||
dest='output_directory',
|
||||
help='directory at which to backup the repositories')
|
||||
parser.add_argument('-l',
|
||||
'--log-level',
|
||||
default='info',
|
||||
dest='log_level',
|
||||
help='log level to use (default: info, possible levels: debug, info, warning, error, critical)')
|
||||
parser.add_argument('-i',
|
||||
'--incremental',
|
||||
action='store_true',
|
||||
|
||||
Reference in New Issue
Block a user