mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
parent
f3d8aefd32
commit
6e9e922d92
@ -167,8 +167,8 @@ def parse_args(args_in):
|
|||||||
type=str, metavar='DIRECTORY',
|
type=str, metavar='DIRECTORY',
|
||||||
help='directory where to save downloaded files'
|
help='directory where to save downloaded files'
|
||||||
' (if none is given $PWD will be used)')
|
' (if none is given $PWD will be used)')
|
||||||
parser.add_argument('--disable-colors', dest='color',
|
parser.add_argument('--disable-colors', dest='disable_color',
|
||||||
action='store_false',
|
action='store_true',
|
||||||
help='disable colored output')
|
help='disable colored output')
|
||||||
parser.add_argument('-m', '--mirror',
|
parser.add_argument('-m', '--mirror',
|
||||||
type=str, nargs='+',
|
type=str, nargs='+',
|
||||||
@ -203,9 +203,10 @@ def combine_configs(config, args):
|
|||||||
if not args.database:
|
if not args.database:
|
||||||
args.database = config.get('LocalDB', 'path')
|
args.database = config.get('LocalDB', 'path')
|
||||||
|
|
||||||
if not args.color or not config.getboolean('Misc', 'colors'):
|
if args.disable_color or config.getboolean('Misc', 'colors') == False:
|
||||||
# TODO: consider how this can be moved to the args
|
args.color = False
|
||||||
pirate.data.colored_output = False
|
else:
|
||||||
|
args.color = True
|
||||||
|
|
||||||
if not args.save_directory:
|
if not args.save_directory:
|
||||||
args.save_directory = config.get('Save', 'directory')
|
args.save_directory = config.get('Save', 'directory')
|
||||||
|
Loading…
Reference in New Issue
Block a user