davglass/grover — pull request #7 by evocateur (2012-12-19 00:10:53+00:00)
Title: Add --phantom option to allow non-PATH phantomjs binary.

We found ourselves trying to run `grover` in an environment (Jenkins) that was supremely hostile to dynamically augmenting the `PATH` inside an Ant target. Unlike the `npm` workaround of just calling `/full/path/to/node /full/path/to/npm/script `, we found ourselves employing dastardly shell script hacks that make me cringe.

Enter `--phantom`! If you don't pass the option, the current behaviour is preserved. As I did not want to encumber the project with many megabytes of cross-platform binaries to test, I merely made the argument check extremely conservative about the actual filesystem presence of the option's argument.