bard / mozrepl

Remotely control Firefox and other Mozilla apps with JavaScript
https://github.com/bard/mozrepl/wiki/
510 stars 64 forks source link

Fixed port specification on the command line #43

Closed d-faure closed 9 years ago

nisaacson commented 10 years ago

What is the syntax for specifying the port?

I am trying the following but the port does not change from the default 4242

/Applications/Firefox.app/Contents/MacOS/firefox -repl -repl-port 7070
nisaacson commented 10 years ago

After some more trial and error I found the following works for specifying a port on the command line

/Applications/Firefox.app/Contents/MacOS/firefox -repl -repl 7070

Note the use of the flag -repl instead of repl-port

rpl commented 9 years ago

@d-faure Thanks a lot, rebased and merged as #57

bard commented 9 years ago

Nothing against the change, just note that the former behavior was --repl [port] (i.e. "start repl, with non-default port if specified") was not unusual at all.

rpl commented 9 years ago

@bard I prefer the former behaviour too, and I've just completed a fight with the command line handler :-)

I've just pushed a new PR which fix the issue (the need to specify the command line parameter twice, and "-repl -repl 4243" as a workaround ) and restore the previous "--repl [port]" option