summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_count.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sinksh/syntax_modules/sink_count.cpp')
-rw-r--r--sinksh/syntax_modules/sink_count.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp
index 1edf1c2..f16b92b 100644
--- a/sinksh/syntax_modules/sink_count.cpp
+++ b/sinksh/syntax_modules/sink_count.cpp
@@ -66,12 +66,9 @@ bool count(const QStringList &args, State &state)
66Syntax::List syntax() 66Syntax::List syntax()
67{ 67{
68 Syntax count("count", QObject::tr("Returns the number of items of a given type in a resource"), &SinkCount::count, Syntax::EventDriven); 68 Syntax count("count", QObject::tr("Returns the number of items of a given type in a resource"), &SinkCount::count, Syntax::EventDriven);
69 69 count.addPositionalArgument({"type", "The entity type to count"});
70 count.addPositionalArgument({.name = "type", .help = "The entity type to count"}); 70 count.addPositionalArgument({"resource", "A resource id where to count", false});
71 count.addPositionalArgument({.name = "resource", .help = "A resource id where to count", .required = false});
72
73 count.completer = &SinkshUtils::typeCompleter; 71 count.completer = &SinkshUtils::typeCompleter;
74
75 return Syntax::List() << count; 72 return Syntax::List() << count;
76} 73}
77 74