mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -05: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;
|
QString password;
|
||||||
|
|
||||||
const QStringList args = app.arguments();
|
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)) {
|
if (args[i] == "--password" && args.size() > (i + 1)) {
|
||||||
password = args[i + 1];
|
password = args[i + 1];
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user