summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-24 00:30:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-24 00:30:18 -0400
commit129b2de901ccfaa01f7c4a520c91787d83291ec3 (patch)
tree5a6cc53a14b5f7384c4cc54839542fe9f0b645b9 /src/report.cc
parenteda6cbd0146d371653feec70e0eb3ee4e4c56379 (diff)
downloadfork-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.cc5
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());