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:
parent
99a07a0904
commit
5a57bd47fb
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue