From 34986b651ab1ddedce19b72a7292a075ea2c4ecc Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Wed, 20 May 2015 17:45:45 +0200 Subject: Use parser metavar. --- tools/check-sth.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') 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): -- cgit v1.1