Removed the largely useless --performance option

This commit is contained in:
John Wiegley 2009-02-24 03:47:23 -04:00
parent 48a8bbc0ee
commit ecf03b96a7
4 changed files with 2 additions and 10 deletions

View file

@ -1,4 +1,4 @@
.Dd February 23, 2009
.Dd February 24, 2009
.Dt ledger 1
.Sh NAME
.Nm ledger
@ -161,7 +161,6 @@ See \fB\-\-tail\fR.
.It Fl \-payee-width Ar INT
.It Fl \-pending
.It Fl \-percentage Pq Fl \%
.It Fl \-performance Pq Fl g
.It Fl \-period Ar PERIOD Pq Fl p
.It Fl \-period-sort
.It Fl \-plot-amount-format Ar FMT

View file

@ -810,10 +810,6 @@ Reports the cost basis for all postings.
@item -V, --market
Reports the last known market value for all commodities.
@item -g, --performance
Reports the net gain/loss for each posting in a @command{register}
report.
@item -G --gain
Reports the net gain/loss for all commodities in the report that have
a price history.

View file

@ -447,8 +447,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
else OPT_ALT(head_, first_);
break;
case 'g':
OPT_CH(performance);
else OPT(gain);
OPT(gain);
break;
case 'h':
OPT(head_);
@ -485,7 +484,6 @@ option_t<report_t> * report_t::lookup_option(const char * p)
else OPT(payee_as_account);
else OPT(pending);
else OPT(percentage);
else OPT(performance);
else OPT_(period_);
else OPT(period_sort_);
else OPT(plot_amount_format_);

View file

@ -461,7 +461,6 @@ public:
});
OPTION(report_t, percentage); // -%
OPTION(report_t, performance); // -g
OPTION__
(report_t, period_, // -p