Added new options --reconcile, --reconcilable and --reconcile-date.

This commit is contained in:
John Wiegley 2005-02-09 21:07:42 +00:00
parent d516c64bec
commit 983618d266
2 changed files with 15 additions and 1 deletions

View file

@ -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 += "&";

View file

@ -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;