ArgumentParser Type
The Argu type generates an argument parser given a type argument that is an F# discriminated union. It can then be used to parse command line arguments or XML configuration.
Instance members
Instance member | Description |
Full Usage:
this.Accept
Parameters:
IArgumentParserVisitor<'R>
-
Visitor used to access the parser.
Returns: 'R
Modifiers: abstract Type parameters: 'R |
|
|
|
|
|
|
|
Full Usage:
this.HelpDescription
Returns: string
|
|
Full Usage:
this.HelpFlags
Returns: string list
|
|
Full Usage:
this.HelpTextMessage
Returns: string option
|
|
Full Usage:
this.IsSubCommandParser
Returns: bool
|
|
|
|
Full Usage:
this.PrintCommandLineSyntax
Parameters:
string
-
Program name identifier placed at start of syntax string
?usageStringCharacterWidth : int
-
Text width used when formatting the usage string.
Returns: string
|
|
Full Usage:
this.PrintUsage
Parameters:
string
-
The message to be displayed on top of the usage string.
?programName : string
-
Override the default program name settings.
?hideSyntax : bool
-
Do not display 'USAGE: [syntax]' at top of usage string. Defaults to false.
?usageStringCharacterWidth : int
-
Text width used when formatting the usage string.
Returns: string
|
|
Static members
Static member | Description |
Full Usage:
ArgumentParser.Create(?programName, ?helpTextMessage, ?usageStringCharacterWidth, ?errorHandler, ?checkStructure)
Parameters:
string
-
Program identifier, e.g. 'cat'. Defaults to the current executable name.
?helpTextMessage : string
-
Message that will be displayed at the top of the help text.
?usageStringCharacterWidth : int
-
Text width used when formatting the usage string. Defaults to 80 chars.
?errorHandler : IExiter
-
The implementation of IExiter used for error handling. Exception is default.
?checkStructure : bool
-
Indicate if the structure of the arguments discriminated union should be checked for errors.
Returns: ArgumentParser<'Template>
|
|