diff options
author | Jordan <me@jordan.im> | 2021-01-11 22:29:32 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-01-11 22:29:32 -0700 |
commit | 78a126255e3b6e976c8e070bc499ecfec69f2ea9 (patch) | |
tree | 122d6c1d60e424bcfe518943e583dadb291f4787 | |
parent | fa85205fd0499f361b243943777590b348df290b (diff) | |
download | allium-78a126255e3b6e976c8e070bc499ecfec69f2ea9.tar.gz allium-78a126255e3b6e976c8e070bc499ecfec69f2ea9.zip |
correct argparse add_argument(); rm store_true, define type
-rwxr-xr-x | allium/allium.py | 4 |
1 files 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")', |