diff options
Diffstat (limited to 'sinksh/syntax_modules/sink_list.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_list.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sinksh/syntax_modules/sink_list.cpp b/sinksh/syntax_modules/sink_list.cpp index feb582e..f6cae6b 100644 --- a/sinksh/syntax_modules/sink_list.cpp +++ b/sinksh/syntax_modules/sink_list.cpp | |||
@@ -64,7 +64,7 @@ QByteArray baIfAvailable(const QStringList &list) | |||
64 | bool list(const QStringList &args_, State &state) | 64 | bool list(const QStringList &args_, State &state) |
65 | { | 65 | { |
66 | if (args_.isEmpty()) { | 66 | if (args_.isEmpty()) { |
67 | state.printError(QObject::tr("Options: $type [--resource $resource] [--compact] [--filter $property=$value] [--showall|--show $property]")); | 67 | state.printError(QObject::tr("Options: $type [--resource $resource] [--compact] [--filter $property=$value] [--id $id] [--showall|--show $property]")); |
68 | return false; | 68 | return false; |
69 | } | 69 | } |
70 | 70 | ||
@@ -84,6 +84,11 @@ bool list(const QStringList &args_, State &state) | |||
84 | query.filter(filter.at(0).toLatin1(), QVariant::fromValue(Sink::ApplicationDomain::Reference{filter.at(1).toLatin1()})); | 84 | query.filter(filter.at(0).toLatin1(), QVariant::fromValue(Sink::ApplicationDomain::Reference{filter.at(1).toLatin1()})); |
85 | } | 85 | } |
86 | } | 86 | } |
87 | if (options.options.contains("id")) { | ||
88 | for (const auto &f : options.options.value("id")) { | ||
89 | query.filter(f.toUtf8()); | ||
90 | } | ||
91 | } | ||
87 | auto compact = options.options.contains("compact"); | 92 | auto compact = options.options.contains("compact"); |
88 | if (!options.options.contains("showall")) { | 93 | if (!options.options.contains("showall")) { |
89 | if (options.options.contains("show")) { | 94 | if (options.options.contains("show")) { |