summaryrefslogtreecommitdiff
path: root/proposals.py
diff options
context:
space:
mode:
Diffstat (limited to 'proposals.py')
-rwxr-xr-xproposals.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/proposals.py b/proposals.py
index 92f1c28..e16412f 100755
--- a/proposals.py
+++ b/proposals.py
@@ -1,4 +1,6 @@
#!/usr/bin/env python3
+"""Queries wiki.openstreetmap.org for proposals and outputs a JSON list of them to stdout."""
+import argparse
import html
import json
import sys
@@ -14,6 +16,9 @@ OSMWIKI_ENDPOINT = 'https://wiki.openstreetmap.org/w/api.php'
def run():
+ arg_parser = argparse.ArgumentParser(description=__doc__)
+ arg_parser.parse_args()
+
res = requests.get(
OSMWIKI_ENDPOINT,
params=dict(