aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2018-04-15 14:28:58 +0200
committerTeddy Wing2018-04-15 14:28:58 +0200
commitfc614ba9d8e60e11f15fcfb883b27e3f3cf010b3 (patch)
tree3de06ba65849b092b4826dd104be89ab773469db /src/main.rs
parent10be3d81230deb8952897b3ba41e415388377ffc (diff)
downloadmeetup-find-events-rss-fc614ba9d8e60e11f15fcfb883b27e3f3cf010b3.tar.bz2
Add `latitude`, `longitude`, `end-date` command line arguments
These will be passed to `build_rss::write_feed`.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 259767a..32134c2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -41,6 +41,24 @@ fn run() -> Result<()> {
"Meetup.com API token (required)",
"TOKEN"
);
+ opts.reqopt(
+ "",
+ "latitude",
+ "Origin latitude (required)",
+ "LATITUDE",
+ );
+ opts.reqopt(
+ "",
+ "longitude",
+ "Origin longitude (required)",
+ "LONGITUDE",
+ );
+ opts.reqopt(
+ "",
+ "end-date",
+ "Search for events from now until DATE (e.g. \"2018-01-31\") (required)",
+ "DATE",
+ );
opts.optflag("h", "help", "print this help menu");
let opt_matches = match opts.parse(&args[1..]) {