From 7daa9642fef7e77e1dd564ad22904032de0f89b3 Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Mon, 3 Feb 2020 09:45:11 +0200 Subject: Enable command line default components installation Add --installDefault option to install components that are set to be checked by default and their respective dependencies. Do not do anything if the component tree does not have anything checked by default. Task-number: QTIFW-1583 Change-Id: I3825c7e797b102a8d6a65ae0e57bfe82fafef5e9 Reviewed-by: Katja Marttila --- src/sdk/commandlineparser.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sdk/commandlineparser.cpp') diff --git a/src/sdk/commandlineparser.cpp b/src/sdk/commandlineparser.cpp index 493a77866..ed6ba7695 100644 --- a/src/sdk/commandlineparser.cpp +++ b/src/sdk/commandlineparser.cpp @@ -127,6 +127,8 @@ CommandLineParser::CommandLineParser() m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::InstallPackages), QLatin1String("Install selected packages"), QLatin1String("package,..."))); + m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::InstallDefault), + QLatin1String("Install packages that are checked by default."))); m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::Platform), QLatin1String("Use the specified platform plugin."), QLatin1String("plugin"))); m_parser.addPositionalArgument(QLatin1String(CommandLineOptions::KeyValue), -- cgit v1.2.3