scothis / serv

Serve static HTTP requests from any directory, ad hoc
MIT License
24 stars 8 forks source link

path and port are getting switched somehow #2

Closed unscriptable closed 10 years ago

unscriptable commented 10 years ago

Using the following command line using the latest code (0.0.7?), I get EADDRINUSE and the output says serving files from "http://127.0.0.1:foo", which is kinda crazy. :)

serv foo --port 8080

I have not been able to isolate the lines of code where this is happening. It all looks good to my eyes.

scothis commented 10 years ago

I saw the same thing with my local install, after uninstalling and reinstalling it's working correctly. My hunch is that there was a bug in optimist.

unscriptable commented 10 years ago

Yep. looks good now. thx.