Skip to main content

CLEAN_TABLE

Constant CLEAN_TABLE 

Source
pub const CLEAN_TABLE: &[OptionSpec];
Expand description

What: Rows of options[] in cmd_clean (builtin/clean.c:936-948), in source order. &[OptionSpec] is a borrowed table baked into the program; None in the long position means the option has only a letter. Why: -e/--exclude takes a value and is PARSE_OPT_NONEG; -d, -x and -X have no long spelling.

In TS you’d write (pseudocode):

export const CLEAN_TABLE = [row(UNREAD, 'q', 'quiet', 'none', true), /* ... */] as const;