From 983618d26676b8ce2481a011407ff27f50be3b8e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 9 Feb 2005 21:07:42 +0000 Subject: Added new options --reconcile, --reconcilable and --reconcile-date. --- config.cc | 14 +++++++++++++- config.h | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/config.cc b/config.cc index 34dc4840..ea9c235e 100644 --- a/config.cc +++ b/config.cc @@ -168,7 +168,7 @@ void config_t::process_options(const std::string& command, // Process remaining command-line arguments - if (command != "e" && command != "w" && command != "R") { + if (command != "e" && command != "w") { // Treat the remaining command-line arguments as regular // expressions, used for refining report results. @@ -815,6 +815,18 @@ OPT_BEGIN(forecast, ":") { config.forecast_limit = optarg; } OPT_END(forecast); +OPT_BEGIN(reconcile, ":") { + config.reconcile_balance = optarg; +} OPT_END(reconcile); + +OPT_BEGIN(reconcilable, "") { + config.reconcile_balance = ""; +} OPT_END(reconcilable); + +OPT_BEGIN(reconcile_date, ":") { + config.reconcile_date = optarg; +} OPT_END(reconcile_date); + OPT_BEGIN(limit, "l:") { if (! config.predicate.empty()) config.predicate += "&"; diff --git a/config.h b/config.h index ab6ff9df..6343be6f 100644 --- a/config.h +++ b/config.h @@ -47,6 +47,8 @@ struct config_t std::string total_expr; std::string total_expr_template; std::string forecast_limit; + std::string reconcile_balance; + std::string reconcile_date; unsigned long budget_flags; unsigned long pricing_leeway; bool show_collapsed; -- cgit v1.2.3