From e124811d8a31292c06430815683b2e0fe87f7ceb Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 22 Feb 2009 04:43:34 -0400 Subject: Added --exchange (-x) option This is like -V, except it lets you specify the goal commodity to report in terms of, for example: reg -x CAD --- src/session.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 8e505c22..54fd8e4e 100644 --- a/src/session.cc +++ b/src/session.cc @@ -235,6 +235,11 @@ expr_t::ptr_op_t session_t::lookup(const string& name) { const char * p = name.c_str(); switch (*p) { + case 'n': + if (is_eq(p, "now")) + return MAKE_FUNCTOR(session_t::fn_now); + break; + case 'o': if (WANT_OPT()) { p += OPT_PREFIX_LEN; if (option_t * handler = lookup_option(p)) -- cgit v1.2.3