2016-07-26 20:41:13 +00:00
|
|
|
use clap::Arg;
|
2016-05-28 18:51:44 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
|