aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-20 01:03:34 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-20 01:03:34 -0400
commitb1170834339f0f85ae334a889f8a62068d76794a (patch)
tree4f7aecb0ff6a1c51db7675a26437474591d26d37
parentcead6e8872e7312284031feee81d91102656fc7d (diff)
downloadteleterm-b1170834339f0f85ae334a889f8a62068d76794a.tar.gz
teleterm-b1170834339f0f85ae334a889f8a62068d76794a.zip
also rename the command line option here
-rw-r--r--src/config.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.rs b/src/config.rs
index d3352d9..a310371 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -223,8 +223,8 @@ impl Server {
.takes_value(true),
)
.arg(
- clap::Arg::with_name("read-timeout")
- .long("read-timeout")
+ clap::Arg::with_name("read-timeout-secs")
+ .long("read-timeout-secs")
.takes_value(true),
)
.arg(
@@ -257,8 +257,8 @@ impl Server {
.parse()
.context(crate::error::ParseBufferSize { input: s })?;
}
- if matches.is_present("read-timeout") {
- let s = matches.value_of("read-timeout").unwrap();
+ if matches.is_present("read-timeout-secs") {
+ let s = matches.value_of("read-timeout-secs").unwrap();
self.read_timeout = s
.parse()
.map(std::time::Duration::from_secs)