-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify port without fallback? #11
Comments
Fair point. Positional arguments are a pain especially when it comes to adding more arguments. Do you know of a nice clean way to parse these kind of flags? Keeping in mind this lib is currently dependency free (and I'd kinda like it to remain that way)! |
Maybe we could guess that an integer number is a port? |
That sounds a little brittle (for example what if someone had a project called 123). I'd prefer a flag than making guesses, I just never found a very clean way of extracting them out of the command 馃 |
I appreciate the simplicity of the command without too many flags, but I change the port much often than I change the fallback file. In fact, I've never changed the fallback file 馃槄
Would love to see
--port
so I can doyarn servor dist --port 3001
instead ofyarn servor dist dist/index.html 3001
.The text was updated successfully, but these errors were encountered: