diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-19 14:02:33 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-19 14:02:33 -0400 |
commit | 9b905f2b44dc3c379c20eeec5ba4c9ecb4331577 (patch) | |
tree | 94c75d2419efb481022e71c94db2f4a673d1de16 /src | |
parent | 627162acc0393aa8e9f4aaf45b52adab518aac4a (diff) | |
download | ledger-9b905f2b44dc3c379c20eeec5ba4c9ecb4331577.tar.gz ledger-9b905f2b44dc3c379c20eeec5ba4c9ecb4331577.tar.bz2 ledger-9b905f2b44dc3c379c20eeec5ba4c9ecb4331577.zip |
query command's parsing behavior sensitive to -n
With -n, the first argument is parsed as a string containing
subarguments. Otherwise, each argument is parsed as a separate
argument.
In short, the -n mode mimicks what happens when the query expr after "="
is parsed for automated expressions. The non -n mode mimicks what
happens at the command line for users.
Diffstat (limited to 'src')
-rw-r--r-- | src/precmd.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/precmd.cc b/src/precmd.cc index 95f3e875..38860766 100644 --- a/src/precmd.cc +++ b/src/precmd.cc @@ -200,7 +200,8 @@ value_t query_command(call_scope_t& args) args.value().dump(out); out << std::endl << std::endl; - query_t query(args.value(), report.what_to_keep()); + query_t query(args.value(), report.what_to_keep(), + ! report.HANDLED(collapse)); if (query) { call_scope_t sub_args(static_cast<scope_t&>(args)); sub_args.push_back(string_value(query.text())); |