From 5beadbbf5b03c3e5a48a54f592ab067605a8d038 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 13 Jan 2018 14:36:13 +0100 Subject: [PATCH] Call default command if no command is passed --- bin/domain/imag-timetrack/src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/domain/imag-timetrack/src/main.rs b/bin/domain/imag-timetrack/src/main.rs index cdfd979d..55a8d01f 100644 --- a/bin/domain/imag-timetrack/src/main.rs +++ b/bin/domain/imag-timetrack/src/main.rs @@ -45,7 +45,7 @@ mod year; use cont::cont; use day::day; -use list::list; +use list::{list, list_impl}; use month::month; use start::start; use stop::stop; @@ -81,8 +81,9 @@ fn main() { }, } } else { - error!("No command"); - 1 + let start = ::chrono::offset::Local::today().naive_local().and_hms(0, 0, 0); + 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);