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
{{ message }}
Repository navigation
util: parseArgs - if the option key is not being passed it should also throw an error #48839
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!
Activity
bakkot commentedon Jul 19, 2023
By "missing options", do you mean that the user of the CLI app doesn't pass the
--fileoption?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.
ErickWendel commentedon Jul 20, 2023
Oh this issue you mentioned is exactly what I meant. I'm gonna close it here and keep there! thanks a lot!