diff options
author | John Wiegley <johnw@newartisans.com> | 2010-03-04 13:37:08 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-03-04 13:37:08 -0500 |
commit | 192972f85420e1fcdc4ca21f002988b5c9bc6794 (patch) | |
tree | 70db7c538ddc0d4ced221bf54faaa1041c16a9e6 | |
parent | 547137096051ab985dca6f8e5c7be191b62ccb0c (diff) | |
download | fork-ledger-192972f85420e1fcdc4ca21f002988b5c9bc6794.tar.gz fork-ledger-192972f85420e1fcdc4ca21f002988b5c9bc6794.tar.bz2 fork-ledger-192972f85420e1fcdc4ca21f002988b5c9bc6794.zip |
Renamed the "args" command to "query"
-rw-r--r-- | src/precmd.cc | 2 | ||||
-rw-r--r-- | src/precmd.h | 2 | ||||
-rw-r--r-- | src/report.cc | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/src/precmd.cc b/src/precmd.cc index 31249016..632caeae 100644 --- a/src/precmd.cc +++ b/src/precmd.cc @@ -174,7 +174,7 @@ value_t period_command(call_scope_t& args) return NULL_VALUE; } -value_t args_command(call_scope_t& args) +value_t query_command(call_scope_t& args) { report_t& report(find_scope<report_t>(args)); std::ostream& out(report.output_stream); diff --git a/src/precmd.h b/src/precmd.h index e0f81cf8..88d66ab2 100644 --- a/src/precmd.h +++ b/src/precmd.h @@ -52,7 +52,7 @@ value_t parse_command(call_scope_t& args); value_t eval_command(call_scope_t& args); value_t format_command(call_scope_t& args); value_t period_command(call_scope_t& args); -value_t args_command(call_scope_t& args); +value_t query_command(call_scope_t& args); } // namespace ledger diff --git a/src/report.cc b/src/report.cc index fa71e584..b882ca92 100644 --- a/src/report.cc +++ b/src/report.cc @@ -1272,7 +1272,7 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind, switch (*p) { case 'a': if (is_eq(p, "args")) - return WRAP_FUNCTOR(args_command); + return WRAP_FUNCTOR(query_command); break; case 'e': if (is_eq(p, "eval")) @@ -1294,6 +1294,10 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind, else if (is_eq(p, "period")) return WRAP_FUNCTOR(period_command); break; + case 'q': + if (is_eq(p, "query")) + return WRAP_FUNCTOR(query_command); + break; case 't': if (is_eq(p, "template")) return WRAP_FUNCTOR(template_command); |