diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2017-11-29 13:30:55 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2017-11-29 13:30:55 +0100 |
commit | 6a2514f35e374a8caf2dd9f1be0d5d6fafbcf46e (patch) | |
tree | 69bb82da3b4de15b8e40622d1a2ba338eb185928 /crocoite | |
parent | 6f628ca24ac2b243dd4a611ff1ecff2d35aaa019 (diff) | |
download | crocoite-6a2514f35e374a8caf2dd9f1be0d5d6fafbcf46e.tar.gz crocoite-6a2514f35e374a8caf2dd9f1be0d5d6fafbcf46e.tar.bz2 crocoite-6a2514f35e374a8caf2dd9f1be0d5d6fafbcf46e.zip |
argparse: Add metavar
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/cli.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crocoite/cli.py b/crocoite/cli.py index a97f0ce..1502884 100644 --- a/crocoite/cli.py +++ b/crocoite/cli.py @@ -126,14 +126,14 @@ def main (): logging.basicConfig (level=logging.DEBUG) parser = argparse.ArgumentParser(description='Save website to WARC using Google Chrome.') - parser.add_argument('--browser', default='http://127.0.0.1:9222', help='DevTools URL') - parser.add_argument('--timeout', default=10, type=int, help='Maximum time for archival') - parser.add_argument('--idle-timeout', default=2, type=int, help='Maximum idle seconds (i.e. no requests)', dest='idleTimeout') - parser.add_argument('--log-buffer', default=1000, type=int, dest='logBuffer') - parser.add_argument('--max-body-size', default=10*1024*1024, type=int, dest='maxBodySize', help='Max body size in bytes') + parser.add_argument('--browser', default='http://127.0.0.1:9222', help='DevTools URL', metavar='URL') + parser.add_argument('--timeout', default=10, type=int, help='Maximum time for archival', metavar='SEC') + parser.add_argument('--idle-timeout', default=2, type=int, help='Maximum idle seconds (i.e. no requests)', dest='idleTimeout', metavar='SEC') + parser.add_argument('--log-buffer', default=1000, type=int, dest='logBuffer', metavar='LINES') + parser.add_argument('--max-body-size', default=10*1024*1024, type=int, dest='maxBodySize', help='Max body size', metavar='BYTES') #parser.add_argument('--keep-tab', action='store_true', default=False, dest='keepTab', help='Keep tab open') - parser.add_argument('--onload', default=[], action='append', help='Inject JavaScript file before loading page') - parser.add_argument('--onsnapshot', default=[], action='append', help='Run JavaScript files before creating DOM snapshot') + parser.add_argument('--onload', default=[], action='append', help='Inject JavaScript file before loading page', metavar='FILE') + parser.add_argument('--onsnapshot', default=[], action='append', help='Run JavaScript files before creating DOM snapshot', metavar='FILE') parser.add_argument('url', help='Website URL') parser.add_argument('output', help='WARC filename') |