Skip to main content

option_from_command

Function option_from_command 

Source
pub fn option_from_command(command: &SyntaxNode) -> Option<OptionDecl>
Expand description

Extract an OptionDecl from a \DeclareOption COMMAND node. The non-star form \DeclareOption{name}{code} reads the name from group 0; the starred default handler \DeclareOption*{code} (recognized by the * WORD the parser folds into the invocation) records name: None.