Skip to main content

assert_clause_flag_spellings

Function assert_clause_flag_spellings 

Source
pub const fn assert_clause_flag_spellings(command: &Command<'_>)
Expand description

Assert that flags scoped to a clause do not reuse a command-level spelling.

Derive-generated command tables include scoped flags so the parser can find them. Entries that share a key are therefore the same declaration and are ignored here; every other pair must have disjoint long, short, alias, and negated spellings.