Fix handling of -- (end-of-options delimiter on the command line)
This commit is contained in:
parent
c169ef581f
commit
c7c66d7a3b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue