Argu


ParseResults<'Template>

Namespace: Argu
Attributes:
[<Sealed>]
[<AutoSerializable(false)>]
[<StructuredFormatDisplay("{StructuredFormatDisplay}")>]

Argument parsing result holder.

Instance members

Instance memberDescription
x.Catch(f, errorCode, showUsage)
Signature: (f:(unit -> 'T) * errorCode:ErrorCode option * showUsage:bool option) -> 'T

Handles any raised exception through the argument parser's exiter mechanism. Display usage optionally.

x.Contains(expr, source)
Signature: (expr:Expr<('Fields -> 'Template)> * source:ParseSource option) -> bool

Checks if parameter of specific kind has been specified.

x.Contains(expr, source)
Signature: (expr:Expr<'Template> * source:ParseSource option) -> bool

Checks if parameter of specific kind has been specified.

x.ErrorHandler
Signature: IExiter

CompiledName: get_ErrorHandler

x.GetAllResults(source)
Signature: (source:ParseSource option) -> 'Template list

Gets all parse results.

x.GetResult(expr, defaultValue, source)
Signature: (expr:Expr<('Fields -> 'Template)> * defaultValue:'Fields option * source:ParseSource option) -> 'Fields

Returns the last specified parameter of given type. Command line parameters have precedence over AppSettings parameters.

x.GetResult(expr, defaultValue, source)
Signature: (expr:Expr<'Template> * defaultValue:'Template option * source:ParseSource option) -> 'Template

Returns the last specified parameter of given type. Command line parameters have precedence over AppSettings parameters.

x.GetResults(expr, source)
Signature: (expr:Expr<('Fields -> 'Template)> * source:ParseSource option) -> 'Fields list

Query parse results for argument with parameters.

x.GetResults(expr, source)
Signature: (expr:Expr<'Template> * source:ParseSource option) -> 'Template list

Query parse results for parameterless argument.

x.GetSubCommand()
Signature: unit -> 'Template

Attempts to recover the subcommand parameter from the results, if one has been specified.

x.IsUsageRequested
Signature: bool

Returns true if '--help' parameter has been specified in the command line.

CompiledName: get_IsUsageRequested

x.IterResult(expr, iterator, source)
Signature: (expr:Expr<('Field -> 'Template)> * iterator:('Field -> unit) * source:ParseSource option) -> unit

Iterates through the last parse result for a given argument kind. Command line parameters have precedence over AppSettings parameters. Results are passed to an iterator function that is error handled by the parser.

x.IterResults(expr, iterator, source)
Signature: (expr:Expr<('Field -> 'Template)> * iterator:('Field -> unit) * source:ParseSource option) -> unit

Iterates through all parse results for a given argument kind. Command line parameters have precedence over AppSettings parameters. Results are passed to an iterator function that is error handled by the parser.

x.PostProcessResult(...)
Signature: (expr:Expr<('Field -> 'Template)> * parser:('Field -> 'R) * source:ParseSource option) -> 'R
Type parameters: 'R

Returns the last specified parameter of given type. Command line parameters have precedence over AppSettings parameters. Results are passed to a post-processing function that is error handled by the parser.

x.PostProcessResults(...)
Signature: (expr:Expr<('Field -> 'Template)> * parser:('Field -> 'R) * source:ParseSource option) -> 'R list
Type parameters: 'R

Query parse results for given argument kind. Command line parameters have precedence over AppSettings parameters. Results are passed to a post-processing function that is error handled by the parser.

x.Raise(error, errorCode, showUsage)
Signature: (error:exn * errorCode:ErrorCode option * showUsage:bool option) -> 'T

Raise an error through the argument parser's exiter mechanism. Display usage optionally.

x.Raise(msg, errorCode, showUsage)
Signature: (msg:string * errorCode:ErrorCode option * showUsage:bool option) -> 'T

Raise an error through the argument parser's exiter mechanism. Display usage optionally.

x.TryGetResult(expr, source)
Signature: (expr:Expr<('Fields -> 'Template)> * source:ParseSource option) -> 'Fields option

Returns the last specified parameter of given type, if it exists. Command line parameters have precedence over AppSettings parameters.

x.TryGetResult(expr, source)
Signature: (expr:Expr<'Template> * source:ParseSource option) -> 'Template option

Returns the last specified parameter of given type, if it exists. Command line parameters have precedence over AppSettings parameters.

x.TryGetSubCommand()
Signature: unit -> 'Template option

Attempts to recover the subcommand parameter from the results, if one has been specified.

x.TryPostProcessResult(...)
Signature: (expr:Expr<('Field -> 'Template)> * parser:('Field -> 'R) * source:ParseSource option) -> 'R option
Type parameters: 'R

Returns the last specified parameter of given type. Command line parameters have precedence over AppSettings parameters. Results are passed to a post-processing function that is error handled by the parser.

x.UnrecognizedCliParams
Signature: string list

Gets all unrecognized CLI parameters which accumulates if parsed with 'ignoreUnrecognized = true'

CompiledName: get_UnrecognizedCliParams

x.UnrecognizedCliParseResults
Signature: obj list

Gets all parse results that are not part of the current parsing context This is only applicable to subcommand parsing operations

CompiledName: get_UnrecognizedCliParseResults

Fork me on GitHub