From 55f5868380a4917028365256abcfd6d0b5f0a1e4 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 29 Oct 2009 00:52:51 -0400 Subject: Setting --date-format in ~/.ledgerrc works again --- src/option.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/option.cc') diff --git a/src/option.cc b/src/option.cc index f47410e2..883080e2 100644 --- a/src/option.cc +++ b/src/option.cc @@ -99,12 +99,15 @@ namespace { } } -void process_option(const string& whence, const string& name, scope_t& scope, +bool process_option(const string& whence, const string& name, scope_t& scope, const char * arg, const string& varname) { op_bool_tuple opt(find_option(scope, name)); - if (opt.first) + if (opt.first) { process_option(whence, opt.first->as_function(), scope, arg, varname); + return true; + } + return false; } void process_environment(const char ** envp, const string& tag, -- cgit v1.2.3