diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-22 18:36:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-22 18:36:54 -0400 |
commit | 25d62b63a27d6af9a7724c468d8940b744601252 (patch) | |
tree | db3d97f889dc523bf4622617f4e893aacce99956 /src/global.cc | |
parent | 6777a8f33b1c09023ad27f8ed00908fc4fe790b2 (diff) | |
download | fork-ledger-25d62b63a27d6af9a7724c468d8940b744601252.tar.gz fork-ledger-25d62b63a27d6af9a7724c468d8940b744601252.tar.bz2 fork-ledger-25d62b63a27d6af9a7724c468d8940b744601252.zip |
Fixed bug: -- was not stopping option processing
Diffstat (limited to 'src/global.cc')
-rw-r--r-- | src/global.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/global.cc b/src/global.cc index e5972efd..3416a3d4 100644 --- a/src/global.cc +++ b/src/global.cc @@ -143,9 +143,11 @@ void global_scope_t::execute_command(strings_list args, bool at_repl) session().set_flush_on_next_data_file(true); // Process the command verb, arguments and options - args = read_command_arguments(report(), args); - if (args.empty()) - return; + if (at_repl) { + args = read_command_arguments(report(), args); + if (args.empty()) + return; + } strings_list::iterator arg = args.begin(); string verb = *arg++; |