-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
为什么我本地测试的结果--no-foo会覆盖事先定义的--foo #1287
Comments
What is your code, and what are you trying? I tried this:
|
sorry,I just now found the cause of the error。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
直接copy文档上的例子。本地测试结果如下:
--no-cheese和--cheese(有默认值),如果后定义--cheese,打印program.cheese,那么结果是默认值。如果后定义--no-cheese,打印program.cheese,那么结果是true
如果只设置了--cheese(无默认值),执行node index pizza-options打印program.cheese,结果是undefined
The text was updated successfully, but these errors were encountered: