summaryrefslogtreecommitdiff
path: root/src/option.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-19 13:06:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-19 13:06:55 -0400
commit509ad47b391e0f583e286b49f48b920e93a05d61 (patch)
tree6a9082a172913c9b48e8f165f4b3c802a71d7833 /src/option.cc
parentcae49a2998965645a0eaa88ad702e2ebc9bd5434 (diff)
downloadfork-ledger-509ad47b391e0f583e286b49f48b920e93a05d61.tar.gz
fork-ledger-509ad47b391e0f583e286b49f48b920e93a05d61.tar.bz2
fork-ledger-509ad47b391e0f583e286b49f48b920e93a05d61.zip
Accept --long-option=value
Diffstat (limited to 'src/option.cc')
-rw-r--r--src/option.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.cc b/src/option.cc
index f8e6a713..8b36e64c 100644
--- a/src/option.cc
+++ b/src/option.cc
@@ -194,7 +194,7 @@ strings_list process_arguments(strings_list args, scope_t& scope)
if (! opt.first)
throw_(option_error, "illegal option --" << name);
- if (opt.second && ++i != args.end() && value == NULL) {
+ if (opt.second && ! value && ++i != args.end() && value == NULL) {
value = (*i).c_str();
DEBUG("option.args", " read option value from arg: " << value);
if (value == NULL)