euscan: allow --progress with --quiet

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
Corentin Chary 2012-07-02 11:20:18 +02:00
parent ba805536ad
commit 84a764dad5

View File

@ -188,7 +188,7 @@ def parse_args():
getopt_options['short']['global'] = "hVCqv1bf:p"
getopt_options['long']['global'] = [
"help", "version", "nocolor", "quiet", "verbose", "oneshot",
"brute-force=", "format="
"brute-force=", "format=", "progress"
]
short_opts = getopt_options['short']['global']
@ -241,7 +241,7 @@ def main():
if CONFIG['verbose'] > 2:
HTTPConnection.debuglevel = 1
if not CONFIG["format"]:
if not CONFIG["format"] and not CONFIG['quiet']:
CONFIG["progress"] = False
on_progress = None