imag/libimagtimeui/src/cli.rs
Gavin Thomas Claugus a84a3b1fff libimagtimeui: Deny warnings and fix denied
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
2016-07-26 16:41:13 -04:00

23 lines
465 B
Rust

use clap::Arg;
pub fn build_datetime_cli_component<'a, 'b>() -> Arg<'a, 'b> {
Arg::with_name(datetime_arg_name())
.short(datetime_arg_short())
.long(datetime_arg_long())
.takes_value(true)
.multiple(false)
.help("Specify a DateTime")
}
pub fn datetime_arg_name() -> &'static str {
"datetime"
}
pub fn datetime_arg_long() -> &'static str {
"datetime"
}
pub fn datetime_arg_short() -> &'static str {
"T"
}