From fc614ba9d8e60e11f15fcfb883b27e3f3cf010b3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 15 Apr 2018 14:28:58 +0200 Subject: Add `latitude`, `longitude`, `end-date` command line arguments These will be passed to `build_rss::write_feed`. --- src/main.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src') 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..]) { -- cgit v1.2.3