mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Using ++argv
This commit is contained in:
parent
e1e8f33f67
commit
782d1f17d1
@ -60,10 +60,8 @@ int main(int argc, char **argv)
|
||||
|
||||
QString commandName = argv[1];
|
||||
|
||||
for (int i = 1; i < argc - 1; ++i) {
|
||||
argv[i] = argv[i + 1];
|
||||
}
|
||||
argv[argc - 1] = nullptr;
|
||||
// Removing the first cli argument before dispatching.
|
||||
++argv;
|
||||
--argc;
|
||||
|
||||
if (commandName == "merge") {
|
||||
|
Loading…
Reference in New Issue
Block a user