summaryrefslogtreecommitdiff
path: root/tools/check-sth.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-05-20 17:45:45 +0200
committerLinus Nordberg <linus@nordberg.se>2015-05-20 17:45:45 +0200
commit34986b651ab1ddedce19b72a7292a075ea2c4ecc (patch)
tree51b3cbc1726e3f24d6959eccb90f46b6711bd96b /tools/check-sth.py
parent896e4712c6fc40f7efd09764d8a1ab04291a819a (diff)
Use parser metavar.
Diffstat (limited to 'tools/check-sth.py')
-rwxr-xr-xtools/check-sth.py5
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):