diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-03 10:40:44 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:28 -0400 |
commit | 2ebfddf4010a2f97c982fa6f9e04a25e2f456af4 (patch) | |
tree | bf9ffc9ce2a3be3126b434934f36118c57f6cd0e /config.cc | |
parent | 96d6d62ad94082ca777c2c88b88e0346a5d00e65 (diff) | |
download | fork-ledger-2ebfddf4010a2f97c982fa6f9e04a25e2f456af4.tar.gz fork-ledger-2ebfddf4010a2f97c982fa6f9e04a25e2f456af4.tar.bz2 fork-ledger-2ebfddf4010a2f97c982fa6f9e04a25e2f456af4.zip |
Began support for improved commodity handling.
Diffstat (limited to 'config.cc')
-rw-r--r-- | config.cc | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -780,9 +780,21 @@ OPT_BEGIN(actual, "L") { } OPT_END(actual); OPT_BEGIN(lots, "") { - show_lots = true; + keep_price = keep_date = keep_tag = true; } OPT_END(lots); +OPT_BEGIN(lot_prices, "") { + keep_price = true; +} OPT_END(lots_prices); + +OPT_BEGIN(lot_dates, "") { + keep_date = true; +} OPT_END(lots_dates); + +OPT_BEGIN(lot_tags, "") { + keep_tag = true; +} OPT_END(lots_tags); + ////////////////////////////////////////////////////////////////////// // // Output customization @@ -1121,6 +1133,9 @@ option_t config_options[CONFIG_OPTIONS_SIZE] = { { "init-file", 'i', true, opt_init_file, false }, { "input-date-format", '\0', true, opt_input_date_format, false }, { "limit", 'l', true, opt_limit, false }, + { "lot-dates", '\0', false, opt_lot_dates, false }, + { "lot-prices", '\0', false, opt_lot_prices, false }, + { "lot-tags", '\0', false, opt_lot_tags, false }, { "lots", '\0', false, opt_lots, false }, { "market", 'V', false, opt_market, false }, { "monthly", 'M', false, opt_monthly, false }, |