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_stat.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'sinksh/syntax_modules/sink_stat.cpp') diff --git a/sinksh/syntax_modules/sink_stat.cpp b/sinksh/syntax_modules/sink_stat.cpp index a936af2..202d1ce 100644 --- a/sinksh/syntax_modules/sink_stat.cpp +++ b/sinksh/syntax_modules/sink_stat.cpp @@ -101,17 +101,9 @@ bool stat(const QStringList &args, State &state) Syntax::List syntax() { - Syntax state("stat", QObject::tr("Shows database usage for the resources requested"), - &SinkStat::stat, Syntax::NotInteractive); - - state.addPositionalArgument({ .name = "resourceId", - .help = "Show statistics of the given resource(s). If no resource is provided, show " - "statistics of all resources", - .required = false, - .variadic = true }); - + Syntax state("stat", QObject::tr("Shows database usage for the resources requested"), &SinkStat::stat, Syntax::NotInteractive); + state.addPositionalArgument({"resourceId", "Show statistics of the given resource(s). If no resource is provided, show statistics of all resources", false, true}); state.completer = &SinkshUtils::resourceCompleter; - return Syntax::List() << state; } -- cgit v1.2.3