diff options
Diffstat (limited to 'akonadish/syntax_modules/akonadi_count.cpp')
-rw-r--r-- | akonadish/syntax_modules/akonadi_count.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/akonadish/syntax_modules/akonadi_count.cpp b/akonadish/syntax_modules/akonadi_count.cpp index cda7235..fa3f1fb 100644 --- a/akonadish/syntax_modules/akonadi_count.cpp +++ b/akonadish/syntax_modules/akonadi_count.cpp | |||
@@ -74,10 +74,10 @@ bool count(const QStringList &args, State &state) | |||
74 | 74 | ||
75 | Syntax::List syntax() | 75 | Syntax::List syntax() |
76 | { | 76 | { |
77 | Syntax::List syntax; | 77 | Syntax count("count", QObject::tr("Returns the number of items of a given type in a resource. Usage: count <type> <resource>"), &AkonadiCount::count, Syntax::EventDriven); |
78 | syntax << Syntax("count", QObject::tr("Returns the number of items of a given type in a resource. Usage: count <type> <resource>"), &AkonadiCount::count, Syntax::EventDriven); | 78 | count.completer = &AkonadishUtils::resourceCompleter; |
79 | 79 | ||
80 | return syntax; | 80 | return Syntax::List() << count; |
81 | } | 81 | } |
82 | 82 | ||
83 | REGISTER_SYNTAX(AkonadiCount) | 83 | REGISTER_SYNTAX(AkonadiCount) |