diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-24 00:30:18 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-24 00:30:18 -0400 |
commit | 129b2de901ccfaa01f7c4a520c91787d83291ec3 (patch) | |
tree | 5a6cc53a14b5f7384c4cc54839542fe9f0b645b9 /src/report.cc | |
parent | eda6cbd0146d371653feec70e0eb3ee4e4c56379 (diff) | |
download | fork-ledger-129b2de901ccfaa01f7c4a520c91787d83291ec3.tar.gz fork-ledger-129b2de901ccfaa01f7c4a520c91787d83291ec3.tar.bz2 fork-ledger-129b2de901ccfaa01f7c4a520c91787d83291ec3.zip |
"only" now a report query modifier for --only
This fits with "show" and "bold", etc.
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index 9d733674..b9ed540c 100644 --- a/src/report.cc +++ b/src/report.cc @@ -267,6 +267,11 @@ void report_t::parse_query_args(const value_t& args, const string& whence) DEBUG("report.predicate", "Limit predicate = " << HANDLER(limit_).str()); } + if (query.has_query(query_t::QUERY_ONLY)) { + HANDLER(only_).on(whence, query.get_query(query_t::QUERY_ONLY)); + DEBUG("report.predicate", "Only predicate = " << HANDLER(only_).str()); + } + if (query.has_query(query_t::QUERY_SHOW)) { HANDLER(display_).on(whence, query.get_query(query_t::QUERY_SHOW)); DEBUG("report.predicate", "Display predicate = " << HANDLER(display_).str()); |