From 559566751ddd29caf2cd74c3d44982c907bd1020 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 28 Oct 2009 01:17:10 -0400 Subject: Sort by default unless --unsorted is selected --- src/report.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/report.cc') diff --git a/src/report.cc b/src/report.cc index e6194541..6b34d2d8 100644 --- a/src/report.cc +++ b/src/report.cc @@ -650,6 +650,7 @@ option_t * report_t::lookup_option(const char * p) OPT(unbudgeted); else OPT(uncleared); else OPT(unround); + else OPT(unsorted); break; case 'w': OPT(weekly); -- cgit v1.2.3 From 0a6f1a63282d4d8d168861ede881b2978c2045c8 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 28 Oct 2009 01:19:16 -0400 Subject: -D now means --daily, not --deviation Because --daily is more commonly desired, and fits the pattern of the other periodic switches: -D --daily -W --weekly -M --monthly -Y --yearly Only --quarterly doesn't have its own short option. --- src/report.cc | 2 +- src/report.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/report.cc') diff --git a/src/report.cc b/src/report.cc index 6b34d2d8..62b54ad1 100644 --- a/src/report.cc +++ b/src/report.cc @@ -446,7 +446,7 @@ option_t * report_t::lookup_option(const char * p) OPT_CH(cleared); break; case 'D': - OPT_CH(deviation); + OPT_CH(daily); break; case 'E': OPT_CH(empty); diff --git a/src/report.h b/src/report.h index c44937d4..7b840dea 100644 --- a/src/report.h +++ b/src/report.h @@ -451,7 +451,7 @@ public: parent->HANDLER(limit_).on(string("--current"), "date<=today"); }); - OPTION_(report_t, daily, DO() { + OPTION_(report_t, daily, DO() { // -D parent->HANDLER(period_).on(string("--daily"), "daily"); }); @@ -464,7 +464,7 @@ public: string("depth<=") + args.get(1)); }); - OPTION_(report_t, deviation, DO() { // -D + OPTION_(report_t, deviation, DO() { parent->HANDLER(display_total_) .set_expr(string("--deviation"), "amount_expr-total_expr/count"); }); -- cgit v1.2.3