diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-10 01:01:18 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-10 01:01:26 -0600 |
commit | 50f202c4e8faecf7398fb21ba5b31768ec46c826 (patch) | |
tree | 215a158471daac1adc4a5f71ec693539a8d51a15 | |
parent | 5e0efb5e8b117fa7c41d7377b506f386e3bbfefe (diff) | |
download | fork-ledger-50f202c4e8faecf7398fb21ba5b31768ec46c826.tar.gz fork-ledger-50f202c4e8faecf7398fb21ba5b31768ec46c826.tar.bz2 fork-ledger-50f202c4e8faecf7398fb21ba5b31768ec46c826.zip |
Make --lot-notes a synonym for --lot-tags
-rw-r--r-- | doc/ledger.1 | 3 | ||||
-rw-r--r-- | src/report.cc | 2 | ||||
-rw-r--r-- | test/baseline/opt-lot-notes.test | 0 |
3 files changed, 3 insertions, 2 deletions
diff --git a/doc/ledger.1 b/doc/ledger.1 index a8e5dcc4..2879cbe0 100644 --- a/doc/ledger.1 +++ b/doc/ledger.1 @@ -1,4 +1,4 @@ -.Dd March 9, 2012 +.Dd March 10, 2012 .Dt ledger 1 .Sh NAME .Nm ledger @@ -349,6 +349,7 @@ See .It Fl \-leeway Ar INT Pq Fl Z .It Fl \-limit Ar EXPR Pq Fl l .It Fl \-lot-dates +.It Fl \-lot-notes .It Fl \-lot-prices .It Fl \-lot-tags .It Fl \-lots diff --git a/src/report.cc b/src/report.cc index 2d37f19f..c959e70a 100644 --- a/src/report.cc +++ b/src/report.cc @@ -1068,7 +1068,7 @@ option_t<report_t> * report_t::lookup_option(const char * p) OPT_(limit_); else OPT(lot_dates); else OPT(lot_prices); - else OPT(lot_tags); + else OPT_ALT(lot_tags, lot_notes); else OPT(lots); else OPT(lots_actual); else OPT_ALT(tail_, last_); diff --git a/test/baseline/opt-lot-notes.test b/test/baseline/opt-lot-notes.test new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/baseline/opt-lot-notes.test |