openframeworks/openFrameworks — pull request #1498 by bilderbuchi (2012-08-21 14:55:28+00:00)
Title: PG fix wrong cli arguments

This elegantly captures wrong arguments, both unknown strings e.g. `--bla`, or wrongly formulated e.g. `-linux` (1 dash). Affected issue: #1273.

Tested on linux, project path as argument still works, since the second check sees if the arg starts with `-`, and I can't imagine a legal path starting with `-`.
This only affects command-line-only PG, so I don't see any significant impact beyond that. Furthermore, it's just 2 more else/if clauses in the argument parser, which abort the program elegantly, and I used only functions which were already in the code before, so I can't imagine this having negative repercussions anywhere else in PG.