Using ++argv

This commit is contained in:
Louis-Bertrand Varin 2017-02-05 12:56:44 -05:00 committed by Louis-Bertrand Varin
parent e1e8f33f67
commit 782d1f17d1

View File

@ -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") {