StrictOptions

type

The individual checks strict mode performs. Each can be toggled on its own by
passing an object to strict.

Properties

NameTypeDescription
partialShortFlagGroups?booleanReject short-flag groups where some characters resolved to options and some did not, e.g. `-fx` when `f` is declared but `x` is not. Raises UnknownOptionError for each unresolved character. Kept separate from `unknownOptions` because a partial group has already *applied* the values of the characters that did resolve, and because a CLI that runs non-strict overall still benefits from this check — non-strict is exactly the mode where a partial group corrupts silently.
unknownArguments?booleanReject unmatched bare tokens, including typoed subcommand names. Raises UnknownArgumentError.
unknownOptions?booleanReject unmatched tokens starting with `-`, e.g. `--bar` when no `bar` option is declared. Raises UnknownOptionError.