Skip to main content

is_enabled

Function is_enabled 

Source
pub fn is_enabled(parsed: &ParsedOptions, id: u16) -> bool
Expand description

What: Whether the option is on after every use was applied. Why: --all --no-all leaves all off, exactly as Git’s OPT_BOOL does.

In TS you’d write (pseudocode):

const enabled = last !== undefined && !last.negated;