fix: fix the cli option name in qwfassoc
This commit is contained in:
@@ -89,12 +89,12 @@ int main(int argc, char* argv[]) {
|
||||
parser.addHelpOption();
|
||||
|
||||
QCommandLineOption manifestOption(
|
||||
QStringList() << QStringLiteral("c") << QStringLiteral("manifest"),
|
||||
QStringList() << QStringLiteral("m") << QStringLiteral("manifest"),
|
||||
QCoreApplication::translate(kTranslationContext,
|
||||
"Path to the application manifest TOML file."),
|
||||
QStringLiteral("manifest"));
|
||||
QCommandLineOption forOption(
|
||||
QStringList() << QStringLiteral("f") << QStringLiteral("for"),
|
||||
QStringList() << QStringLiteral("t") << QStringLiteral("target"),
|
||||
QCoreApplication::translate(kTranslationContext,
|
||||
"Target scope: \"user\" or \"system\"."),
|
||||
QStringLiteral("scope"));
|
||||
@@ -111,13 +111,13 @@ int main(int argc, char* argv[]) {
|
||||
return fatal(nullptr,
|
||||
QCoreApplication::translate(
|
||||
kTranslationContext,
|
||||
"The --manifest/-c option is required."));
|
||||
"The --manifest/-m option is required."));
|
||||
}
|
||||
if (forValue.isEmpty()) {
|
||||
return fatal(nullptr,
|
||||
QCoreApplication::translate(
|
||||
kTranslationContext,
|
||||
"The --for/-f option is required."));
|
||||
"The --target/-t option is required."));
|
||||
}
|
||||
|
||||
qwfassoc::TargetScope scope;
|
||||
|
||||
Reference in New Issue
Block a user