You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By "missing options", do you mean that the user of the CLI app doesn't pass the --file option?
If so: in most CLI applications, most options are optional. So that's definitely not the correct default; it would need to be opt in. For which, see #44564.
I'm also not sure what you mean by "throw for missing values". This utility doesn't (and shouldn't) throw if the user fails to pass any values; that's also up to you to validate.
By "missing options", do you mean that the user of the CLI app doesn't pass the --file option?
If so: in most CLI applications, most options are optional. So that's definitely not the correct default; it would need to be opt in. For which, see #44564.
I'm also not sure what you mean by "throw for missing values". This utility doesn't (and shouldn't) throw if the user fails to pass any values; that's also up to you to validate.
Oh this issue you mentioned is exactly what I meant. I'm gonna close it here and keep there! thanks a lot!
Version
v21.0.0-pre
Platform
Darwin MacBook-Pro-7.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
Using the code below, it doesn't throw an error if the options are not provided.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
Should throw an error for both missing options and values
What do you see instead?
Only throw for missing values
Additional information
@nodejs/tooling
The text was updated successfully, but these errors were encountered: