aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan <me@jordan.im>2021-01-11 22:29:32 -0700
committerJordan <me@jordan.im>2021-01-11 22:29:32 -0700
commit78a126255e3b6e976c8e070bc499ecfec69f2ea9 (patch)
tree122d6c1d60e424bcfe518943e583dadb291f4787
parentfa85205fd0499f361b243943777590b348df290b (diff)
downloadallium-78a126255e3b6e976c8e070bc499ecfec69f2ea9.tar.gz
allium-78a126255e3b6e976c8e070bc499ecfec69f2ea9.zip
correct argparse add_argument(); rm store_true, define type
-rwxr-xr-xallium/allium.py4
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")',