summaryrefslogtreecommitdiff
path: root/src/option.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-29 00:52:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-29 00:52:51 -0400
commit55f5868380a4917028365256abcfd6d0b5f0a1e4 (patch)
tree57397e284628ad0a219d3c4948482a756ba19a3b /src/option.cc
parent2b2ffb7787df634aee1681dac7be48e986d34337 (diff)
downloadfork-ledger-55f5868380a4917028365256abcfd6d0b5f0a1e4.tar.gz
fork-ledger-55f5868380a4917028365256abcfd6d0b5f0a1e4.tar.bz2
fork-ledger-55f5868380a4917028365256abcfd6d0b5f0a1e4.zip
Setting --date-format in ~/.ledgerrc works again
Diffstat (limited to 'src/option.cc')
-rw-r--r--src/option.cc7
1 files changed, 5 insertions, 2 deletions
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,