mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-30 19:37:15 -05:00
Fix command line argument parsing.
This commit is contained in:
parent
ab32452920
commit
64170a16ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue