qmllint: Fix broken argument help entries

The fix and dry-run argument had broken help entries, this change fixes
this issue.

Change-Id: I744592e610f3d9941a2a54e4153cb2a92fbe9f1b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Maximilian Goldstein 2022-03-22 15:28:55 +01:00
parent 99a07a0904
commit 5a57bd47fb
1 changed files with 6 additions and 7 deletions

View File

@ -148,15 +148,14 @@ All warnings can be set to three levels:
absolutePath.setFlags(QCommandLineOption::HiddenFromHelp);
parser.addOption(absolutePath);
QCommandLineOption fixFile(QStringList()
<< "f"
<< "fix" << QLatin1String("Automatically apply fix suggestions"));
QCommandLineOption fixFile(QStringList() << "f"
<< "fix",
QLatin1String("Automatically apply fix suggestions"));
parser.addOption(fixFile);
QCommandLineOption dryRun(QStringList()
<< "dry-run"
<< QLatin1String("Only print out the contents of the file after fix "
"suggestions without applying them"));
QCommandLineOption dryRun(QStringList() << "dry-run",
QLatin1String("Only print out the contents of the file after fix "
"suggestions without applying them"));
parser.addOption(dryRun);
parser.addPositionalArgument(QLatin1String("files"),