aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/play.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-20 00:46:33 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-20 00:52:52 -0400
commitcead6e8872e7312284031feee81d91102656fc7d (patch)
tree234a9785bbaaad1be87e6327b9e244c72a8de90a /src/cmd/play.rs
parentfabf5bf86b3f7d63d9a47c12f91b756d67ea7f7c (diff)
downloadteleterm-cead6e8872e7312284031feee81d91102656fc7d.tar.gz
teleterm-cead6e8872e7312284031feee81d91102656fc7d.zip
also move the flag definitions into the config reader
Diffstat (limited to 'src/cmd/play.rs')
-rw-r--r--src/cmd/play.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd/play.rs b/src/cmd/play.rs
index 7eae765..2e41816 100644
--- a/src/cmd/play.rs
+++ b/src/cmd/play.rs
@@ -24,11 +24,7 @@ impl crate::config::Config for Config {
}
pub fn cmd<'a, 'b>(app: clap::App<'a, 'b>) -> clap::App<'a, 'b> {
- app.about("Play recorded terminal sessions").arg(
- clap::Arg::with_name("filename")
- .long("filename")
- .takes_value(true),
- )
+ crate::config::Ttyrec::cmd(app.about("Play recorded terminal sessions"))
}
pub fn config(config: config::Config) -> Box<dyn crate::config::Config> {