mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix command line argument parsing.
This commit is contained in:
parent
ab32452920
commit
64170a16ab
@ -36,7 +36,7 @@ int main(int argc, char **argv)
|
||||
QString password;
|
||||
|
||||
const QStringList args = app.arguments();
|
||||
for (int i = 0; i < args.size(); i++) {
|
||||
for (int i = 1; i < args.size(); i++) {
|
||||
if (args[i] == "--password" && args.size() > (i + 1)) {
|
||||
password = args[i + 1];
|
||||
i++;
|
||||
|
Loading…
Reference in New Issue
Block a user