diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-16 20:50:20 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-16 20:50:20 -0400 |
commit | 72cdb41727d53cc9e108b70c59d4adf3b8389a58 (patch) | |
tree | 937f635105e540c36a68c3aa18795099b5008f6f /src/report.cc | |
parent | 15bfeb3cb1d04657d9fc7dc6120e5c460dc0db2b (diff) | |
download | ledger-72cdb41727d53cc9e108b70c59d4adf3b8389a58.tar.gz ledger-72cdb41727d53cc9e108b70c59d4adf3b8389a58.tar.bz2 ledger-72cdb41727d53cc9e108b70c59d4adf3b8389a58.zip |
Added new --set-acount and --set-payee options
These fully generalize the previous --payee-as-account and such options,
which, for example, is now implemented to be the same as saying,
"--set-account payee".
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc index 59286a91..771e1950 100644 --- a/src/report.cc +++ b/src/report.cc @@ -470,7 +470,9 @@ option_t<report_t> * report_t::lookup_option(const char * p) else OPT(revalued_only); break; case 's': - OPT(set_price_); + OPT(set_account_); + else OPT(set_payee_); + else OPT(set_price_); else OPT(sort_); else OPT(sort_all_); else OPT(sort_entries_); |