Renamed the "args" command to "query"
This commit is contained in:
parent
5471370960
commit
192972f854
3 changed files with 7 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue