From 78a126255e3b6e976c8e070bc499ecfec69f2ea9 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 11 Jan 2021 22:29:32 -0700 Subject: correct argparse add_argument(); rm store_true, define type --- allium/allium.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allium/allium.py b/allium/allium.py index 9da4c00..a17002e 100755 --- a/allium/allium.py +++ b/allium/allium.py @@ -27,11 +27,11 @@ ABS_PATH = os.path.dirname(os.path.abspath(__file__)) if __name__ == '__main__': desc = 'allium: generate static tor relay metrics and statistics' parser = argparse.ArgumentParser(description=desc) - parser.add_argument('--out', dest='output_dir', action='store_true', + parser.add_argument('--out', dest='output_dir', type=str, default="./www", help='directory to store rendered files (default "./www")', required=False) - parser.add_argument('--onionoo-url', dest='onionoo_url', action='store_true', + parser.add_argument('--onionoo-url', dest='onionoo_url', type=str, default="https://onionoo.torproject.org/details", help='onionoo HTTP URL (default '\ '"https://onionoo.torproject.org/details")', -- cgit v1.2.3-54-g00ecf