Correctly compile the expressions passed to -t and -T.
This commit is contained in:
parent
02bd9d29cf
commit
63f9d97dda
1 changed files with 12 additions and 0 deletions
12
src/report.h
12
src/report.h
|
|
@ -186,6 +186,9 @@ public:
|
|||
expr_t expr;
|
||||
CTOR(report_t, amount_) {
|
||||
expr = "amount";
|
||||
}
|
||||
DO_(args) {
|
||||
expr = args[0].to_string();
|
||||
});
|
||||
|
||||
OPTION(report_t, amount_data); // -j
|
||||
|
|
@ -242,6 +245,9 @@ public:
|
|||
expr_t expr;
|
||||
CTOR(report_t, display_amount_) {
|
||||
expr = "amount_expr";
|
||||
}
|
||||
DO_(args) {
|
||||
expr = args[0].to_string();
|
||||
});
|
||||
|
||||
OPTION__
|
||||
|
|
@ -249,6 +255,9 @@ public:
|
|||
expr_t expr;
|
||||
CTOR(report_t, display_total_) {
|
||||
expr = "total_expr";
|
||||
}
|
||||
DO_(args) {
|
||||
expr = args[0].to_string();
|
||||
});
|
||||
|
||||
OPTION(report_t, dow);
|
||||
|
|
@ -357,6 +366,9 @@ public:
|
|||
expr_t expr;
|
||||
CTOR(report_t, total_) {
|
||||
expr = "total";
|
||||
}
|
||||
DO_(args) {
|
||||
expr = args[0].to_string();
|
||||
});
|
||||
|
||||
OPTION(report_t, total_data); // -J
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue