diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-03-06 17:00:17 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-03-06 17:00:17 +0200 |
commit | 4a07b5a23dacc66f45aeb2ac6f9593ef76f40db9 (patch) | |
tree | 2c4f7f26aa6955a92790150a1cec675982d3dcb6 | |
parent | 4b0f94905b23af9e9c432d4d7c3d6e12e54e3bb7 (diff) | |
download | ick-4a07b5a23dacc66f45aeb2ac6f9593ef76f40db9.tar.gz |
With --verbose, show command output
-rw-r--r-- | icklib/progress.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/icklib/progress.py b/icklib/progress.py index cb65f11..92168de 100644 --- a/icklib/progress.py +++ b/icklib/progress.py @@ -102,10 +102,15 @@ class VerboseProgress(_Progress): 'step': indent * 2 + '{value}', 'target': indent * 3 + '{value}', 'command': indent * 4 + '{value}', + 'line': indent * 5 + '{value}', } if key.startswith('line'): - pass + key = 'line' + fmt = formats[key] + if fmt is not None: + sys.stdout.write(formats[key].format(key=key, value=value)) + sys.stdout.write('\n') elif key in formats: if value: fmt = formats[key] |