From f4e13f34580d1b71736f3ea6451d24237ef6fe2c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 21 Feb 2009 02:20:08 -0400 Subject: Added --start-of-week option, used with --weekly For example, --start-of-week=monday can be used to report weeks that begin on Mondays. --- src/global.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/global.cc') diff --git a/src/global.cc b/src/global.cc index e3cfc853..26fa494f 100644 --- a/src/global.cc +++ b/src/global.cc @@ -368,6 +368,8 @@ void global_scope_t::normalize_report_options(const string& verb) output_datetime_format = rep.HANDLER(date_format_).str() + " %H:%M:%S"; output_date_format = rep.HANDLER(date_format_).str(); } + if (rep.HANDLED(start_of_week_)) + start_of_week = string_to_day_of_week(rep.HANDLER(start_of_week_).str()); // jww (2008-08-14): This code really needs to be rationalized away for 3.0. // I might be able to do it with command objects, like register_t, which -- cgit v1.2.3