summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-09 21:07:42 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:56 -0400
commit983618d26676b8ce2481a011407ff27f50be3b8e (patch)
treef6bc052af27c31caa544b2f8cc873f1c67582be6 /config.cc
parentd516c64bec13ce031235895ee04e27d2fba1c363 (diff)
downloadfork-ledger-983618d26676b8ce2481a011407ff27f50be3b8e.tar.gz
fork-ledger-983618d26676b8ce2481a011407ff27f50be3b8e.tar.bz2
fork-ledger-983618d26676b8ce2481a011407ff27f50be3b8e.zip
Added new options --reconcile, --reconcilable and --reconcile-date.
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc14
1 files changed, 13 insertions, 1 deletions
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 = "<all>";
+} 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 += "&";