Removed the --totals option
This commit is contained in:
parent
5167e6223b
commit
fb9af0f111
5 changed files with 3 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
.Dd March 3, 2009
|
.Dd March 5, 2009
|
||||||
.Dt ledger 1
|
.Dt ledger 1
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm ledger
|
.Nm ledger
|
||||||
|
|
@ -214,7 +214,6 @@ appeared in the original journal file.
|
||||||
.It Fl \-total Ar EXPR
|
.It Fl \-total Ar EXPR
|
||||||
.It Fl \-total-data Pq Fl J
|
.It Fl \-total-data Pq Fl J
|
||||||
.It Fl \-total-width Ar INT
|
.It Fl \-total-width Ar INT
|
||||||
.It Fl \-totals
|
|
||||||
.It Fl \-trace Ar INT
|
.It Fl \-trace Ar INT
|
||||||
.It Fl \-truncate
|
.It Fl \-truncate
|
||||||
.It Fl \-unbudgeted
|
.It Fl \-unbudgeted
|
||||||
|
|
|
||||||
|
|
@ -90,10 +90,8 @@ post_handler_ptr chain_post_handlers(report_t& report,
|
||||||
report, report.HANDLED(revalued_only)));
|
report, report.HANDLED(revalued_only)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// calc_posts computes the running total. When this appears will determine,
|
// calc_posts computes visited posting values and the running total
|
||||||
// for example, whether filtered posts are included or excluded from the
|
handler.reset(new calc_posts(handler, expr, only_preliminaries));
|
||||||
// running total.
|
|
||||||
handler.reset(new calc_posts(handler, expr, report.HANDLED(totals)));
|
|
||||||
|
|
||||||
// unround_posts will unround the amounts in all postings
|
// unround_posts will unround the amounts in all postings
|
||||||
if (report.HANDLED(unround))
|
if (report.HANDLED(unround))
|
||||||
|
|
|
||||||
|
|
@ -413,9 +413,6 @@ void global_scope_t::normalize_report_options(const string& verb)
|
||||||
if (verb[0] != 'b' && verb[0] != 'r')
|
if (verb[0] != 'b' && verb[0] != 'r')
|
||||||
rep.HANDLER(base).on_only();
|
rep.HANDLER(base).on_only();
|
||||||
|
|
||||||
if (verb[0] == 'b' || verb == "equity")
|
|
||||||
rep.HANDLER(totals).on_only();
|
|
||||||
|
|
||||||
if (rep.HANDLED(period_) && ! rep.HANDLED(sort_all_))
|
if (rep.HANDLED(period_) && ! rep.HANDLED(sort_all_))
|
||||||
rep.HANDLER(sort_xacts_).on_only();
|
rep.HANDLER(sort_xacts_).on_only();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -606,7 +606,6 @@ option_t<report_t> * report_t::lookup_option(const char * p)
|
||||||
OPT_CH(amount_);
|
OPT_CH(amount_);
|
||||||
else OPT(tail_);
|
else OPT(tail_);
|
||||||
else OPT(total_);
|
else OPT(total_);
|
||||||
else OPT(totals);
|
|
||||||
else OPT(total_data);
|
else OPT(total_data);
|
||||||
else OPT(truncate_);
|
else OPT(truncate_);
|
||||||
else OPT(total_width_);
|
else OPT(total_width_);
|
||||||
|
|
|
||||||
|
|
@ -613,8 +613,6 @@ public:
|
||||||
set_expr(args[0].to_string());
|
set_expr(args[0].to_string());
|
||||||
});
|
});
|
||||||
|
|
||||||
OPTION(report_t, totals);
|
|
||||||
|
|
||||||
OPTION_(report_t, total_data, DO() { // -J
|
OPTION_(report_t, total_data, DO() { // -J
|
||||||
parent->HANDLER(format_).on_with(parent->HANDLER(plot_total_format_).value);
|
parent->HANDLER(format_).on_with(parent->HANDLER(plot_total_format_).value);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue