diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-25 11:02:59 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-25 11:02:59 +0100 |
commit | 50df30dfea10a3c1ee6fe8de9856fdb4596a08fe (patch) | |
tree | c5750b09e000f82e1dc7c8278e575aa3effeab0b /sinksh/syntax_modules/sink_count.cpp | |
parent | 684e3dfd401282674a2d28b7109f4f4abb83b62c (diff) | |
download | sink-50df30dfea10a3c1ee6fe8de9856fdb4596a08fe.tar.gz sink-50df30dfea10a3c1ee6fe8de9856fdb4596a08fe.zip |
Share the filter syntax for count and list
Diffstat (limited to 'sinksh/syntax_modules/sink_count.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_count.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp index 9b6aa1e..04a9550 100644 --- a/sinksh/syntax_modules/sink_count.cpp +++ b/sinksh/syntax_modules/sink_count.cpp | |||
@@ -41,7 +41,7 @@ bool count(const QStringList &args, State &state) | |||
41 | { | 41 | { |
42 | Sink::Query query; | 42 | Sink::Query query; |
43 | query.setId("count"); | 43 | query.setId("count"); |
44 | if (!SinkshUtils::applyFilter(query, args)) { | 44 | if (!SinkshUtils::applyFilter(query, SyntaxTree::parseOptions(args))) { |
45 | state.printError(QObject::tr("Options: $type $filter")); | 45 | state.printError(QObject::tr("Options: $type $filter")); |
46 | return false; | 46 | return false; |
47 | } | 47 | } |