diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-05-20 17:45:45 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-05-20 17:45:45 +0200 |
commit | 34986b651ab1ddedce19b72a7292a075ea2c4ecc (patch) | |
tree | 51b3cbc1726e3f24d6959eccb90f46b6711bd96b | |
parent | 896e4712c6fc40f7efd09764d8a1ab04291a819a (diff) |
Use parser metavar.
-rwxr-xr-x | tools/check-sth.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/check-sth.py b/tools/check-sth.py index f94e894..00ce357 100755 --- a/tools/check-sth.py +++ b/tools/check-sth.py @@ -23,11 +23,12 @@ DEFAULT_CUR_FILE = 'cur-sth.json' parser = argparse.ArgumentParser(description="") parser.add_argument('--cur-sth', + metavar='file', default=DEFAULT_CUR_FILE, help="File containing current STH (default=%s)" % DEFAULT_CUR_FILE) parser.add_argument('baseurl', help="Base URL for CT server") -parser.add_argument('--publickey', default=None, metavar="file", help='Public key for the CT log') -parser.add_argument('--cafile', default=None, metavar="file", help='File containing the CA cert') +parser.add_argument('--publickey', default=None, metavar='file', help='Public key for the CT log') +parser.add_argument('--cafile', default=None, metavar='file', help='File containing the CA cert') parser.add_argument('--allow-lag', action='store_true', help='Allow node to lag behind previous STH') def print_sth(sth): |