aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 32134c2..55f8093 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -64,6 +64,13 @@ fn run() -> Result<()> {
let opt_matches = match opts.parse(&args[1..]) {
Ok(m) => m,
Err(f) => {
+ if args.contains(&"-h".to_owned()) ||
+ args.contains(&"--help".to_owned()) {
+ print_usage(opts);
+
+ return Ok(());
+ }
+
eprintln!("meetup-find-events-rss: error: {}", f.to_string());
exit(1);
},