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
fix(options): revive unknown-option validation as a staged warning
validateOptions built its lookup map keyed by each option's stringified
*value* rather than its name, so every entry resolved to undefined and the
consumer loop skipped all of them. No unknown option, and no malformed
option value, has been reported since. Iterate the parsed argv keys instead.
yargs reports both the dashed and the camelCase spelling of every flag, so
getCorrectOptionName now also resolves a camelCase key back to a literal
dashed declaration -- without that, the vision-ng family rejects itself --
and the loop reports each option once rather than once per spelling.
Five years of silence means an unknown flag may well be load-bearing in
somebody's script, and the value-shape checks have been dead just as long.
Both now warn by default and only fail when NS_STRICT_OPTIONS=error, so the
hard-fail can be previewed before it ships.
Commands that forward their options to another CLI cannot be validated
against this CLI's dictionary; they opt out with skipOptionsValidation.
preview, which passes raw argv to @nativescript/preview-cli, is the first.
0 commit comments