ariya/phantomjs — pull request #315 by etaoins (2012-09-14 15:10:49+00:00)
Title: Fix script argument parsing to be compatible with 1.6 and CasperJS

This fixes CapserJS which builds a command line like this:
`phantomjs bin/bootstrap.js --casper-path=~/capserjs --cli`

That works on Phantom 1.6 but not on master due to the qcommandline port.

Fix by extending qcommandlne to take a ParameterFence flag which causes it to treat any options after a parameter as arguments. Switch "scriptname" to use that so the 1.6 behaviour is restored.

Hacking qcommandline isn't ideal but I can't think of a forward/backward compatible way of coordinating a change with CasperJS