summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_livequery.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-03 22:43:54 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-03 22:43:54 +0200
commit256b5beb89d2c67d74d80a6f1a0f0dad074911e3 (patch)
tree23326dfe10e290417f823803c75628327f727636 /sinksh/syntax_modules/sink_livequery.cpp
parent50bed81038f10091d35c5719df8078612393ae95 (diff)
downloadsink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.tar.gz
sink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.zip
Removed the use of C99 extensions
Diffstat (limited to 'sinksh/syntax_modules/sink_livequery.cpp')
-rw-r--r--sinksh/syntax_modules/sink_livequery.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/sinksh/syntax_modules/sink_livequery.cpp b/sinksh/syntax_modules/sink_livequery.cpp
index 2d8d5d0..42d7d33 100644
--- a/sinksh/syntax_modules/sink_livequery.cpp
+++ b/sinksh/syntax_modules/sink_livequery.cpp
@@ -127,13 +127,13 @@ Syntax::List syntax()
127{ 127{
128 Syntax list("livequery", QObject::tr("Run a livequery."), &SinkLiveQuery::livequery, Syntax::EventDriven); 128 Syntax list("livequery", QObject::tr("Run a livequery."), &SinkLiveQuery::livequery, Syntax::EventDriven);
129 129
130 list.addPositionalArgument({ .name = "type", .help = "The type to run the livequery on" }); 130 list.addPositionalArgument({"type", "The type to run the livequery on" });
131 list.addParameter("resource", { .name = "resource", .help = "Filter the livequery to the given resource" }); 131 list.addParameter("resource", {"resource", "Filter the livequery to the given resource" });
132 list.addFlag("compact", "Use a compact view (reduces the size of IDs)"); 132 list.addFlag("compact", "Use a compact view (reduces the size of IDs)");
133 list.addParameter("filter", { .name = "property=$value", .help = "Filter the results" }); 133 list.addParameter("filter", {"property=$value", "Filter the results" });
134 list.addParameter("id", { .name = "id", .help = "List only the content with the given ID" }); 134 list.addParameter("id", {"id", "List only the content with the given ID" });
135 list.addFlag("showall", "Show all properties"); 135 list.addFlag("showall", "Show all properties");
136 list.addParameter("show", { .name = "property", .help = "Only show the given property" }); 136 list.addParameter("show", {"property", "Only show the given property" });
137 137
138 list.completer = &SinkshUtils::resourceOrTypeCompleter; 138 list.completer = &SinkshUtils::resourceOrTypeCompleter;
139 return Syntax::List() << list; 139 return Syntax::List() << list;