diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-03 22:43:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-03 22:43:54 +0200 |
commit | 256b5beb89d2c67d74d80a6f1a0f0dad074911e3 (patch) | |
tree | 23326dfe10e290417f823803c75628327f727636 /sinksh/syntax_modules/sink_list.cpp | |
parent | 50bed81038f10091d35c5719df8078612393ae95 (diff) | |
download | sink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.tar.gz sink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.zip |
Removed the use of C99 extensions
Diffstat (limited to 'sinksh/syntax_modules/sink_list.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index eef188b..36b1847 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -201,16 +201,16 @@ Syntax::List syntax() | |||
201 | { | 201 | { |
202 | Syntax list("list", QObject::tr("List all resources, or the contents of one or more resources."), &SinkList::list, Syntax::NotInteractive); | 202 | Syntax list("list", QObject::tr("List all resources, or the contents of one or more resources."), &SinkList::list, Syntax::NotInteractive); |
203 | 203 | ||
204 | list.addPositionalArgument({.name = "type", .help = "The type of content to list (resource, identity, account, mail, etc.)"}); | 204 | list.addPositionalArgument({"type", "The type of content to list (resource, identity, account, mail, etc.)"}); |
205 | list.addParameter("resource", { .name = "resource", .help = "List only the content of the given resource" }); | 205 | list.addParameter("resource", {"resource", "List only the content of the given resource" }); |
206 | list.addFlag("compact", "Use a compact view (reduces the size of IDs)"); | 206 | list.addFlag("compact", "Use a compact view (reduces the size of IDs)"); |
207 | list.addParameter("filter", { .name = "property=$value", .help = "Filter the results" }); | 207 | list.addParameter("filter", {"property=$value", "Filter the results" }); |
208 | list.addParameter("id", { .name = "id", .help = "List only the content with the given ID" }); | 208 | list.addParameter("id", {"id", "List only the content with the given ID" }); |
209 | list.addFlag("showall", "Show all properties"); | 209 | list.addFlag("showall", "Show all properties"); |
210 | list.addParameter("show", { .name = "property", .help = "Only show the given property" }); | 210 | list.addParameter("show", {"property", "Only show the given property" }); |
211 | list.addParameter("reduce", { .name = "property:$selectorProperty", .help = "Combine the result with the same $property, sorted by $selectorProperty" }); | 211 | list.addParameter("reduce", {"property:$selectorProperty", "Combine the result with the same $property, sorted by $selectorProperty" }); |
212 | list.addParameter("sort", { .name = "property", .help = "Sort the results according to the given property" }); | 212 | list.addParameter("sort", {"property", "Sort the results according to the given property" }); |
213 | list.addParameter("limit", { .name = "count", .help = "Limit the results" }); | 213 | list.addParameter("limit", {"count", "Limit the results" }); |
214 | 214 | ||
215 | list.completer = &SinkshUtils::resourceOrTypeCompleter; | 215 | list.completer = &SinkshUtils::resourceOrTypeCompleter; |
216 | return Syntax::List() << list; | 216 | return Syntax::List() << list; |