-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.
This commit is contained in:
parent
aa45d2d38c
commit
0a6f1a6328
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue