diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-28 01:19:16 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-28 01:19:16 -0400 |
commit | 0a6f1a63282d4d8d168861ede881b2978c2045c8 (patch) | |
tree | 58abeb927a5d7f1434312513edfd00019ec71e87 | |
parent | aa45d2d38cffe09ed2503e0df07bee373cc0e7de (diff) | |
download | fork-ledger-0a6f1a63282d4d8d168861ede881b2978c2045c8.tar.gz fork-ledger-0a6f1a63282d4d8d168861ede881b2978c2045c8.tar.bz2 fork-ledger-0a6f1a63282d4d8d168861ede881b2978c2045c8.zip |
-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.
-rw-r--r-- | src/report.cc | 2 | ||||
-rw-r--r-- | src/report.h | 4 |
2 files changed, 3 insertions, 3 deletions
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> * 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<string>(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"); }); |