aboutsummaryrefslogtreecommitdiffstats
path: root/src/match_handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/match_handler.rs')
-rw-r--r--src/match_handler.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/match_handler.rs b/src/match_handler.rs
index 3fd7c6a..599e8f1 100644
--- a/src/match_handler.rs
+++ b/src/match_handler.rs
@@ -66,7 +66,8 @@ pub fn handle_matches(
}
Some("sub") | Some("subscribe") => {
let subscribe_matches = matches
- .subcommand_matches("subscribe")
+ .subcommand_matches("sub")
+ .or_else(|| matches.subcommand_matches("subscribe"))
.chain_err(|| "unable to find subcommand matches")?;
let url = subscribe_matches
.value_of("URL")