diff options
Diffstat (limited to 'sinksh/syntax_modules/sink_create.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_create.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/sinksh/syntax_modules/sink_create.cpp b/sinksh/syntax_modules/sink_create.cpp index b1631cd..f9b2c6b 100644 --- a/sinksh/syntax_modules/sink_create.cpp +++ b/sinksh/syntax_modules/sink_create.cpp | |||
@@ -175,24 +175,20 @@ Syntax::List syntax() | |||
175 | Syntax::List syntax; | 175 | Syntax::List syntax; |
176 | 176 | ||
177 | Syntax create("create", QObject::tr("Create items in a resource"), &SinkCreate::create); | 177 | Syntax create("create", QObject::tr("Create items in a resource"), &SinkCreate::create); |
178 | create.addPositionalArgument({ .name = "type", .help = "The type of entity to create (mail, event, etc.)" }); | 178 | create.addPositionalArgument({"type", "The type of entity to create (mail, event, etc.)"}); |
179 | create.addPositionalArgument({ .name = "resourceId", .help = "The ID of the resource that will contain the new entity" }); | 179 | create.addPositionalArgument({"resourceId", "The ID of the resource that will contain the new entity"}); |
180 | create.addPositionalArgument( | 180 | create.addPositionalArgument({"key value", "Content of the entity", false, true}); |
181 | { .name = "key value", .help = "Content of the entity", .required = false, .variadic = true }); | ||
182 | 181 | ||
183 | Syntax resource("resource", QObject::tr("Creates a new resource"), &SinkCreate::resource); | 182 | Syntax resource("resource", QObject::tr("Creates a new resource"), &SinkCreate::resource); |
184 | resource.addPositionalArgument({ .name = "type", .help = "The type of resource to create" }); | 183 | resource.addPositionalArgument({"type", "The type of resource to create" }); |
185 | resource.addPositionalArgument( | 184 | resource.addPositionalArgument({"key value", "Content of the resource", false, true}); |
186 | { .name = "key value", .help = "Content of the resource", .required = false, .variadic = true }); | ||
187 | 185 | ||
188 | Syntax account("account", QObject::tr("Creates a new account"), &SinkCreate::account); | 186 | Syntax account("account", QObject::tr("Creates a new account"), &SinkCreate::account); |
189 | account.addPositionalArgument({ .name = "type", .help = "The type of account to create" }); | 187 | account.addPositionalArgument({"type", "The type of account to create" }); |
190 | account.addPositionalArgument( | 188 | account.addPositionalArgument({"key value", "Content of the account", false, true}); |
191 | { .name = "key value", .help = "Content of the account", .required = false, .variadic = true }); | ||
192 | 189 | ||
193 | Syntax identity("identity", QObject::tr("Creates a new identity"), &SinkCreate::identity); | 190 | Syntax identity("identity", QObject::tr("Creates a new identity"), &SinkCreate::identity); |
194 | identity.addPositionalArgument( | 191 | identity.addPositionalArgument({"key value", "Content of the identity", false, true}); |
195 | { .name = "key value", .help = "Content of the identity", .required = false, .variadic = true }); | ||
196 | 192 | ||
197 | create.children << resource; | 193 | create.children << resource; |
198 | create.children << account; | 194 | create.children << account; |