diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-05 03:49:49 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-05 03:49:49 -0400 |
commit | 37006741d62d630f8d0ef58fece07af15dcf82c7 (patch) | |
tree | fe008bda4570cc8e4e0a95651a6e3761b19ee36c /src/report.cc | |
parent | 327fdca8f43bee675c0e1bfd5e3c3dca6bafc5d0 (diff) | |
download | fork-ledger-37006741d62d630f8d0ef58fece07af15dcf82c7.tar.gz fork-ledger-37006741d62d630f8d0ef58fece07af15dcf82c7.tar.bz2 fork-ledger-37006741d62d630f8d0ef58fece07af15dcf82c7.zip |
Support using Ledger as a script interpretor.
The file must begin with '#!/usr/bin/env ledger --script'. You can add a -f
option to the options, but it must come before --script.
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/report.cc b/src/report.cc index d4158638..20c9e8e5 100644 --- a/src/report.cc +++ b/src/report.cc @@ -251,8 +251,6 @@ expr_t::ptr_op_t report_t::lookup(const string& name) if (*(p + 1) == '\0' || std::strcmp(p, "print") == 0) return WRAP_FUNCTOR (reporter<>(new format_xacts(*this, FORMAT(print_format)))); - else if (std::strcmp(p, "push") == 0) - return MAKE_FUNCTOR(report_t::ignore); break; case 'r': @@ -344,8 +342,6 @@ expr_t::ptr_op_t report_t::lookup(const string& name) return MAKE_FUNCTOR(report_t::option_dow); else if (std::strcmp(p, "date-format_") == 0) return MAKE_FUNCTOR(report_t::option_date_format_); - else if (std::strcmp(p, "debug_") == 0) - return MAKE_FUNCTOR(report_t::ignore); break; case 'e': @@ -440,8 +436,6 @@ expr_t::ptr_op_t report_t::lookup(const string& name) return MAKE_FUNCTOR(report_t::option_totals); else if (std::strcmp(p, "tail_") == 0) return MAKE_FUNCTOR(report_t::option_tail_); - else if (std::strcmp(p, "trace_") == 0) - return MAKE_FUNCTOR(report_t::ignore); break; case 'u': @@ -449,13 +443,6 @@ expr_t::ptr_op_t report_t::lookup(const string& name) return MAKE_FUNCTOR(report_t::option_uncleared); break; - case 'v': - if (! *(p + 1) || std::strcmp(p, "verbose") == 0) - return MAKE_FUNCTOR(report_t::ignore); - else if (std::strcmp(p, "verify") == 0) - return MAKE_FUNCTOR(report_t::ignore); - break; - case 'w': if (std::strcmp(p, "weekly") == 0) return MAKE_FUNCTOR(report_t::option_weekly); |