summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_inspect.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_inspect.cpp
parent50bed81038f10091d35c5719df8078612393ae95 (diff)
downloadsink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.tar.gz
sink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.zip
Removed the use of C99 extensions
Diffstat (limited to 'sinksh/syntax_modules/sink_inspect.cpp')
-rw-r--r--sinksh/syntax_modules/sink_inspect.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp
index 355efa3..1d2d90f 100644
--- a/sinksh/syntax_modules/sink_inspect.cpp
+++ b/sinksh/syntax_modules/sink_inspect.cpp
@@ -243,17 +243,12 @@ Syntax::List syntax()
243 Syntax state("inspect", QObject::tr("Inspect database for the resource requested"), 243 Syntax state("inspect", QObject::tr("Inspect database for the resource requested"),
244 &SinkInspect::inspect, Syntax::NotInteractive); 244 &SinkInspect::inspect, Syntax::NotInteractive);
245 245
246 state.addParameter("resource", 246 state.addParameter("resource", {"resource", "Which resource to inspect", true});
247 { .name = "resource", .help = "Which resource to inspect", .required = true }); 247 state.addParameter("db", {"database", "Which database to inspect"});
248 state.addParameter("db", 248 state.addParameter("filter", {"id", "A specific id to filter the results by (currently not working)"});
249 { .name = "database", .help = "Which database to inspect"});
250 state.addParameter("filter",
251 { .name = "id", .help = "A specific id to filter the results by (currently not working)"});
252 state.addFlag("showinternal", "Show internal fields only"); 249 state.addFlag("showinternal", "Show internal fields only");
253 state.addParameter("validaterids", 250 state.addParameter("validaterids", {"type", "Validate remote Ids of the given type"});
254 { .name = "type", .help = "Validate remote Ids of the given type"}); 251 state.addParameter("fulltext", {"id", "If 'id' is not given, count the number of fulltext documents. Else, print the terms of the document with the given id"});
255 state.addParameter("fulltext",
256 { .name = "id", .help = "If 'id' is not given, count the number of fulltext documents. Else, print the terms of the document with the given id"});
257 252
258 state.completer = &SinkshUtils::resourceCompleter; 253 state.completer = &SinkshUtils::resourceCompleter;
259 254