Command-line options refactoring

- parse cmd-line options from scripts only, not from library code
- 'phpunit --filter=<test-name> testFileName.php' works now