1
0
Fork 0

Fix handling of -- (end-of-options delimiter on the command line)

This commit is contained in:
Florent Rougon 2016-10-29 00:04:12 +02:00
parent c169ef581f
commit c7c66d7a3b

View file

@ -1955,7 +1955,7 @@ void Options::init(int argc, char **argv, const SGPath& appDataPath)
for (int i=1; i<argc; ++i) {
if (inOptions && (argv[i][0] == '-')) {
if (strcmp(argv[i], "--") == 0) { // end of options delimiter
inOptions = true;
inOptions = false;
continue;
}