Method OptionParser
OptionParser(Parser<IEnumerable<Char>>, Parser<IEnumerable<Char>>)
Parser combinator for a command line switch/option
Declaration
public static Parser<CommandlineOption> OptionParser(Parser<IEnumerable<char>> leadingParser, Parser<IEnumerable<char>> valueSep)
Parameters
public static Parser<CommandlineOption> OptionParser(Parser<IEnumerable<char>> leadingParser, Parser<IEnumerable<char>> valueSep)
Sprache.Parser<System.Collections.Generic.IEnumerable<Char>> | leadingParser | Parser for the switch leading (typically parses '-','--' or '/'. CommonOptionStart) |
Sprache.Parser<System.Collections.Generic.IEnumerable<Char>> | valueSep | Parser to match the value separator(s) for the parser (typically parser '=' or ':'. EqualOrColon) |
Returns
Sprache.Parser<CommandlineOption> | Parser for the option as defined by the parameters |
OptionParser(Parser<IEnumerable<Char>>)
Parser combinator for a command line switch/option
Declaration
public static Parser<CommandlineOption> OptionParser(Parser<IEnumerable<char>> valueSep)
Parameters
public static Parser<CommandlineOption> OptionParser(Parser<IEnumerable<char>> valueSep)
Sprache.Parser<System.Collections.Generic.IEnumerable<Char>> | valueSep | Parser to match the value separator(s) for the parser (typically parser '=' or ':'. EqualOrColon) |
Returns
Sprache.Parser<CommandlineOption> | Parser for the option as defined by the parameters |