sgentle/phantomjs-node — pull request #82 by scien (2013-05-30 20:11:07+00:00)
Title: Fix passing command line arguments to "create"

This was broken 16 days ago (March 14) in this commit - https://github.com/sgentle/phantomjs-node/commit/427c1d6a2599ee1c58255af08e63c67283aec0b7

I'm proposing a new solution where binary and port can be passed in an object. so any function passed is the callback, any strings are command line arguments, and options like binary and port can be passed in the option.

demonstration of current issue...

example
```
create = (args..., cb, binary = 'phantomjs', port = 12300) ->
console.log args
console.log cb
console.log binary
console.log port

create '--load-images=no', '--local-to-remote-url-access=yes', (ph) ->
```

outputs
```
[]
--load-images=no
--local-to-remote-url-access=yes
[Function]
```