Commit e51ab440 authored by Vincent Pelletier's avatar Vincent Pelletier

Provide long version for -Q.

parent a4c6f5d7
...@@ -1072,7 +1072,7 @@ def main(): ...@@ -1072,7 +1072,7 @@ def main():
help='Filename to write output to. Use - for stdout. Default: %(default)s') help='Filename to write output to. Use - for stdout. Default: %(default)s')
parser.add_argument('-q', '--quiet', action='store_true', parser.add_argument('-q', '--quiet', action='store_true',
help='Suppress warnings about malformed lines.') help='Suppress warnings about malformed lines.')
parser.add_argument('-Q', dest='extra_quiet', action='store_true', parser.add_argument('-Q', '--no-progress', action='store_true',
help='Suppress progress indication (file being parsed, lines counter). ' help='Suppress progress indication (file being parsed, lines counter). '
'Does not imply -q.') 'Does not imply -q.')
parser.add_argument('--state-file', nargs='+', default=[], parser.add_argument('--state-file', nargs='+', default=[],
...@@ -1247,7 +1247,7 @@ def main(): ...@@ -1247,7 +1247,7 @@ def main():
no_url_lines = 0 no_url_lines = 0
all_lines = 0 all_lines = 0
skipped_user_agent = 0 skipped_user_agent = 0
show_progress = not args.extra_quiet show_progress = not args.no_progress
parsing_start_time = time.time() parsing_start_time = time.time()
for fileno, filename in enumerate(infile_list, 1): for fileno, filename in enumerate(infile_list, 1):
if show_progress: if show_progress:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment