aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
authorNathan Jaremko2019-03-08 01:22:45 -0500
committerNathan Jaremko2019-03-08 01:22:45 -0500
commit1f529fde9e67f5b9c5a4984453d844357532910f (patch)
treea262eaa17b8eff551ba4c67c9c5c6cded1bab698 /src/parser.rs
parentcf8d69e765549bd08b4e05313927068b96c7cbe7 (diff)
downloadpodcast-1f529fde9e67f5b9c5a4984453d844357532910f.tar.bz2
Add podcast search support
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs
index caae070..743da6d 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -83,6 +83,18 @@ pub fn get_app<'a, 'b>(version: &'a str) -> App<'a, 'b> {
Arg::with_name("debug")
.short("d")
.help("print debug information verbosely"),
+ )
+ .arg(
+ Arg::with_name("PODCAST")
+ .help("Regex for subscribed podcast")
+ .required(true)
+ .index(1),
+ )
+ .arg(
+ Arg::with_name("EPISODE")
+ .help("Episode index")
+ .required(false)
+ .index(2),
),
)
.subcommand(