From 7e43b937825f3cc3572b09aeffa5b345f11f7aee Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 25 Feb 2009 13:52:17 -0400 Subject: Changed --exchange's short option from -x to -X --- doc/ledger.1 | 4 ++-- src/report.cc | 6 +++--- src/report.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/ledger.1 b/doc/ledger.1 index 879c4f17..becec762 100644 --- a/doc/ledger.1 +++ b/doc/ledger.1 @@ -111,7 +111,7 @@ and causes an immediate reloading of all journal files in the session. .It Fl \-columns Ar INT .It Fl \-commodity-as-account (Also \fB\-\-comm\-as\-account\fR). -.It Fl \-commodity-as-payee Pq Fl x +.It Fl \-commodity-as-payee (Also \fB\-\-comm\-as\-payee\fR). .It Fl \-cost See \fB\-\-basis\fR. @@ -133,7 +133,7 @@ See \fB\-\-basis\fR. .It Fl \-end Pq Fl e .It Fl \-equity .It Fl \-exact -.It Fl \-exchange Ar COMM Oo , COMM, ... Oc Pq Fl x +.It Fl \-exchange Ar COMM Oo , COMM, ... Oc Pq Fl X .It Fl \-file Ar FILE .It Fl \-first Ar INT See \fB\-\-head\fR. diff --git a/src/report.cc b/src/report.cc index af4bff67..980b7892 100644 --- a/src/report.cc +++ b/src/report.cc @@ -389,6 +389,9 @@ option_t * report_t::lookup_option(const char * p) case 'W': OPT_CH(weekly); break; + case 'X': + OPT_CH(exchange_); + break; case 'Y': OPT_CH(yearly); break; @@ -544,9 +547,6 @@ option_t * report_t::lookup_option(const char * p) OPT(weekly); else OPT_(wide); break; - case 'x': - OPT_CH(exchange_); - break; case 'y': OPT_CH(date_format_); else OPT(yearly); diff --git a/src/report.h b/src/report.h index 5bc5bd69..6839de0e 100644 --- a/src/report.h +++ b/src/report.h @@ -383,7 +383,7 @@ public: OPTION(report_t, equity); OPTION(report_t, exact); - OPTION_(report_t, exchange_, DO_(args) { // -x + OPTION_(report_t, exchange_, DO_(args) { // -X on_with(args[0]); call_scope_t no_args(*parent); parent->HANDLER(market).parent = parent; -- cgit v1.2.3