Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot watch on specific host #180

Closed
minhchu opened this issue Jul 3, 2017 · 4 comments · Fixed by #181
Closed

Cannot watch on specific host #180

minhchu opened this issue Jul 3, 2017 · 4 comments · Fixed by #181
Assignees

Comments

@minhchu
Copy link
Contributor

minhchu commented Jul 3, 2017

Problem:

When I run preact watch --host "127.0.0.1" inside a preact project created with preact-cli, I got this screen:

preactcli

It seems that yargs package overrides the h alias option and turns it into a help command.

How to fix:

Delete the alias of host option resolves the issue.

preactcli2

@reznord
Copy link
Member

reznord commented Jul 3, 2017

@minhchu ah, right !!

yargs defaults -h to help.

@lukeed
Copy link
Member

lukeed commented Jul 3, 2017

Traditionally, a --host flag is aliased to -H

@reznord
Copy link
Member

reznord commented Jul 3, 2017

Traditionally, a --host flag is aliased to -H

Oh, this can also be done !!

@reznord
Copy link
Member

reznord commented Jul 4, 2017

fixed in #183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants