mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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();
|
const QStringList args = parser.positionalArguments();
|
||||||
if (args.size() != 2) {
|
if (args.size() != 2) {
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
parser.showHelp();
|
parser.showHelp(EXIT_FAILURE);
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Database* db = nullptr;
|
Database* db = nullptr;
|
||||||
|
@ -44,8 +44,7 @@ int Extract::execute(int argc, char** argv)
|
|||||||
|
|
||||||
const QStringList args = parser.positionalArguments();
|
const QStringList args = parser.positionalArguments();
|
||||||
if (args.size() != 1) {
|
if (args.size() != 1) {
|
||||||
parser.showHelp();
|
parser.showHelp(EXIT_FAILURE);
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out << "Insert the database password\n> ";
|
out << "Insert the database password\n> ";
|
||||||
|
@ -62,8 +62,7 @@ int List::execute(int argc, char** argv)
|
|||||||
const QStringList args = parser.positionalArguments();
|
const QStringList args = parser.positionalArguments();
|
||||||
if (args.size() != 1 && args.size() != 2) {
|
if (args.size() != 1 && args.size() != 2) {
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
parser.showHelp();
|
parser.showHelp(EXIT_FAILURE);
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Database* db = nullptr;
|
Database* db = nullptr;
|
||||||
|
@ -61,8 +61,7 @@ int Merge::execute(int argc, char** argv)
|
|||||||
const QStringList args = parser.positionalArguments();
|
const QStringList args = parser.positionalArguments();
|
||||||
if (args.size() != 2) {
|
if (args.size() != 2) {
|
||||||
QCoreApplication app(argc, argv);
|
QCoreApplication app(argc, argv);
|
||||||
parser.showHelp();
|
parser.showHelp(EXIT_FAILURE);
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Database* db1;
|
Database* db1;
|
||||||
|
@ -44,8 +44,7 @@ int Show::execute(int argc, char** argv)
|
|||||||
|
|
||||||
const QStringList args = parser.positionalArguments();
|
const QStringList args = parser.positionalArguments();
|
||||||
if (args.size() != 2) {
|
if (args.size() != 2) {
|
||||||
parser.showHelp();
|
parser.showHelp(EXIT_FAILURE);
|
||||||
return EXIT_FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out << "Insert the database password\n> ";
|
out << "Insert the database password\n> ";
|
||||||
|
Loading…
Reference in New Issue
Block a user