aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wikiget/dl.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wikiget/dl.py b/wikiget/dl.py
index cd8e175..4dc65c5 100644
--- a/wikiget/dl.py
+++ b/wikiget/dl.py
@@ -114,8 +114,12 @@ def download(dl, args):
print(e)
sys.exit(1)
else:
- # download the file
- with tqdm(total=file_size, unit='B',
+ # download the file(s)
+ if args.verbose >= 1:
+ leave_bars = True
+ else:
+ leave_bars = False
+ with tqdm(leave=leave_bars, total=file_size, unit='B',
unit_scale=True, unit_divisor=1024) as progress_bar:
with fd:
res = site.connection.get(file_url, stream=True)