Call default command if no command is passed

This commit is contained in:
Matthias Beyer 2018-01-13 14:36:13 +01:00
parent 284f12e8cb
commit 5beadbbf5b

View file

@ -45,7 +45,7 @@ mod year;
use cont::cont; use cont::cont;
use day::day; use day::day;
use list::list; use list::{list, list_impl};
use month::month; use month::month;
use start::start; use start::start;
use stop::stop; use stop::stop;
@ -81,8 +81,9 @@ fn main() {
}, },
} }
} else { } else {
error!("No command"); let start = ::chrono::offset::Local::today().naive_local().and_hms(0, 0, 0);
1 let end = ::chrono::offset::Local::today().naive_local().and_hms(23, 59, 59);
list_impl(&rt, Some(start), Some(end), false)
}; };
::std::process::exit(retval); ::std::process::exit(retval);