diff options
Diffstat (limited to 'sinksh/syntax_modules/sink_sync.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index f165f58..e13e8f8 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -83,6 +83,11 @@ bool sync(const QStringList &args, State &state) | |||
83 | Syntax::List syntax() | 83 | Syntax::List syntax() |
84 | { | 84 | { |
85 | Syntax sync("sync", QObject::tr("Synchronizes a resource."), &SinkSync::sync, Syntax::EventDriven); | 85 | Syntax sync("sync", QObject::tr("Synchronizes a resource."), &SinkSync::sync, Syntax::EventDriven); |
86 | |||
87 | sync.addPositionalArgument({ .name = "type", .help = "The type of resource to synchronize" }); | ||
88 | sync.addPositionalArgument({ .name = "resourceId", .help = "The ID of the resource to synchronize" }); | ||
89 | sync.addParameter("password", { .name = "password", .help = "The password of the resource", .required = true }); | ||
90 | |||
86 | sync.completer = &SinkshUtils::resourceCompleter; | 91 | sync.completer = &SinkshUtils::resourceCompleter; |
87 | 92 | ||
88 | return Syntax::List() << sync; | 93 | return Syntax::List() << sync; |