diff options
author | Katja Marttila <katja.marttila@qt.io> | 2019-10-22 13:33:11 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2020-02-14 09:52:09 +0000 |
commit | ac38ce9ee96bc2b827d89b089a9d2e2ca37608d7 (patch) | |
tree | 9f3bc6e9902f7dbbf2a8d1314d00a58b09500136 /src/sdk/commandlineparser.cpp | |
parent | 817a2d41c9d506b7bb5fe3ba17e0a62cb8d59421 (diff) |
Uninstall selected packages from command line
Components can be uninstalled from CLI with
--uninstallPackages package1,package2,... Replicates the same behavior
as when removing from visual UI, so forced installation, virtual and
components installed as autodependency cannot be uninstalled.
Change-Id: Ibcd87b5ceb8e509c84c6944510c23e59b28dedb9
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/sdk/commandlineparser.cpp')
-rw-r--r-- | src/sdk/commandlineparser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sdk/commandlineparser.cpp b/src/sdk/commandlineparser.cpp index ed6ba7695..f59a6e69f 100644 --- a/src/sdk/commandlineparser.cpp +++ b/src/sdk/commandlineparser.cpp @@ -129,6 +129,9 @@ CommandLineParser::CommandLineParser() QLatin1String("package,..."))); m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::InstallDefault), QLatin1String("Install packages that are checked by default."))); + m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::UninstallSelectedPackages), + QLatin1String("Uninstall selected packages. Note that all child components will be uninstalled as well"), + QLatin1String("package,..."))); m_parser.addOption(QCommandLineOption(QLatin1String(CommandLineOptions::Platform), QLatin1String("Use the specified platform plugin."), QLatin1String("plugin"))); m_parser.addPositionalArgument(QLatin1String(CommandLineOptions::KeyValue), |