summaryrefslogtreecommitdiff
path: root/tools/editor/icons/icon_spatial.png
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-11-01 17:50:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2015-11-01 17:50:44 +0100
commitfc2c3bda5c637b82d00b42e5da948a09b8bd9aed (patch)
tree2f7614b2eddd49fb1198d4188d94a2e8bfaf9ccc /tools/editor/icons/icon_spatial.png
parent281d6fac1edd4a5b06692b850c00db6a5a9bbb46 (diff)
Fix arguments parsing in the main function
Fixes #2611 which was a regression from 692216b86ab97db91e7ff3903ffc9ac8e37433f6. The bogus behaviour considered that if there were more than one arguments left to parse, they would be a pair of arguments (switch and its parameter), and thus skipped the next argument in all cases (thus potentially skipping a "-editor", which triggered #2611). This is fixed by checking first for arguments that don't expect a parameter, and only afterwards for arguments that expect a parameter. And if a "pair" of arguments is not valid, we no longer increment the counter.
Diffstat (limited to 'tools/editor/icons/icon_spatial.png')
0 files changed, 0 insertions, 0 deletions