supportsNegation

function
function supportsNegation(config: UnknownOptionConfig): boolean;

Check if a config supports boolean-like negation (--no-flag).
True for boolean options and oneOf options containing a boolean valueType.

Parameters

NameTypeDescription
configUnknownOptionConfig—

Returns

boolean