mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
failure when showing help (#658)
This commit is contained in:
parent
48ea024d7e
commit
95baf25648
@ -55,8 +55,7 @@ int Clip::execute(int argc, char** argv)
|
||||
const QStringList args = parser.positionalArguments();
|
||||
if (args.size() != 2) {
|
||||
QCoreApplication app(argc, argv);
|
||||
parser.showHelp();
|
||||
return EXIT_FAILURE;
|
||||
parser.showHelp(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Database* db = nullptr;
|
||||
|
@ -44,8 +44,7 @@ int Extract::execute(int argc, char** argv)
|
||||
|
||||
const QStringList args = parser.positionalArguments();
|
||||
if (args.size() != 1) {
|
||||
parser.showHelp();
|
||||
return EXIT_FAILURE;
|
||||
parser.showHelp(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
out << "Insert the database password\n> ";
|
||||
|
@ -62,8 +62,7 @@ int List::execute(int argc, char** argv)
|
||||
const QStringList args = parser.positionalArguments();
|
||||
if (args.size() != 1 && args.size() != 2) {
|
||||
QCoreApplication app(argc, argv);
|
||||
parser.showHelp();
|
||||
return EXIT_FAILURE;
|
||||
parser.showHelp(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Database* db = nullptr;
|
||||
|
@ -61,8 +61,7 @@ int Merge::execute(int argc, char** argv)
|
||||
const QStringList args = parser.positionalArguments();
|
||||
if (args.size() != 2) {
|
||||
QCoreApplication app(argc, argv);
|
||||
parser.showHelp();
|
||||
return EXIT_FAILURE;
|
||||
parser.showHelp(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Database* db1;
|
||||
|
@ -44,8 +44,7 @@ int Show::execute(int argc, char** argv)
|
||||
|
||||
const QStringList args = parser.positionalArguments();
|
||||
if (args.size() != 2) {
|
||||
parser.showHelp();
|
||||
return EXIT_FAILURE;
|
||||
parser.showHelp(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
out << "Insert the database password\n> ";
|
||||
|
Loading…
Reference in New Issue
Block a user