summaryrefslogtreecommitdiff
path: root/src/precmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/precmd.cc')
-rw-r--r--src/precmd.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/precmd.cc b/src/precmd.cc
index 5cefe435..fd6a2457 100644
--- a/src/precmd.cc
+++ b/src/precmd.cc
@@ -63,7 +63,7 @@ value_t parse_command(call_scope_t& args)
out << std::endl << "--- Calculated value ---" << std::endl;
value_t result(expr.calc(args));
- result.print(out);
+ result.dump(out);
out << std::endl;
return 0L;
@@ -82,7 +82,8 @@ value_t eval_command(call_scope_t& args)
std::ostream& out(report.output_stream);
expr_t expr(*arg);
- out << expr.calc(args).strip_annotations() << std::endl;
+ out << expr.calc(args).strip_annotations(report.what_to_keep)
+ << std::endl;
return 0L;
}
@@ -150,7 +151,7 @@ value_t args_command(call_scope_t& args)
value_t::sequence_t::const_iterator end = args.value().end();
out << "--- Input arguments ---" << std::endl;
- args.value().print(out);
+ args.value().dump(out);
out << std::endl << std::endl;
string predicate = args_to_predicate_expr(begin, end);