mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-31 16:20:22 -05:00
Adding a GUI prompt for password. (#587)
This commit is contained in:
parent
a75746c7c1
commit
c3bd5d21aa
6 changed files with 64 additions and 20 deletions
|
|
@ -47,9 +47,6 @@ int main(int argc, char** argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
app.setApplicationVersion(KEEPASSX_VERSION);
|
||||
|
||||
QCommandLineParser parser;
|
||||
|
||||
QString description("KeePassXC command line interface.");
|
||||
|
|
@ -72,6 +69,8 @@ int main(int argc, char** argv)
|
|||
// parser.process(app);
|
||||
|
||||
if (argc < 2) {
|
||||
QCoreApplication app(argc, argv);
|
||||
app.setApplicationVersion(KEEPASSX_VERSION);
|
||||
parser.showHelp();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
|
@ -104,6 +103,8 @@ int main(int argc, char** argv)
|
|||
exitCode = Show::execute(argc, argv);
|
||||
} else {
|
||||
qCritical("Invalid command %s.", qPrintable(commandName));
|
||||
QCoreApplication app(argc, argv);
|
||||
app.setApplicationVersion(KEEPASSX_VERSION);
|
||||
parser.showHelp();
|
||||
exitCode = EXIT_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue