From 2ebfddf4010a2f97c982fa6f9e04a25e2f456af4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 3 Mar 2006 10:40:44 +0000 Subject: Began support for improved commodity handling. --- config.cc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'config.cc') diff --git a/config.cc b/config.cc index 54600369..bc67a7ef 100644 --- a/config.cc +++ b/config.cc @@ -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 }, -- cgit v1.2.3