From 256b5beb89d2c67d74d80a6f1a0f0dad074911e3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 3 Aug 2018 22:43:54 +0200 Subject: Removed the use of C99 extensions --- sinksh/syntax_modules/sink_drop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sinksh/syntax_modules/sink_drop.cpp') diff --git a/sinksh/syntax_modules/sink_drop.cpp b/sinksh/syntax_modules/sink_drop.cpp index eaa3041..e4bc92b 100644 --- a/sinksh/syntax_modules/sink_drop.cpp +++ b/sinksh/syntax_modules/sink_drop.cpp @@ -62,7 +62,7 @@ bool drop(const QStringList &args, State &state) Syntax::List syntax() { Syntax drop("drop", QObject::tr("Drop all caches of a resource."), &SinkDrop::drop, Syntax::NotInteractive); - drop.addPositionalArgument({.name = "resource", .help = "Id(s) of the resource(s) to drop", .required = true, .variadic = true}); + drop.addPositionalArgument({"resource", "Id(s) of the resource(s) to drop", true, true}); drop.completer = &SinkshUtils::resourceOrTypeCompleter; return Syntax::List() << drop; -- cgit v1.2.3