diff options
Diffstat (limited to 'sinksh/syntax_modules/sink_inspect.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_inspect.cpp | 15 |
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 | ||