ArgParser Module
Types
Type | Description |
Functions and values
Function or value | Description |
Full Usage:
p1 .>> p2
Parameters:
ArgumentParser<'a, 'b>
p2 : ArgumentParser<'a, 'c>
Returns: IArgumentStream<'a> -> Reply<'b>
|
|
Full Usage:
p1 .>>. p2
Parameters:
ArgumentParser<'a, 'b>
p2 : ArgumentParser<'a, 'c>
Returns: IArgumentStream<'a> -> Reply<'b * 'c>
|
|
Full Usage:
p > label
Parameters:
ArgumentParser<'u, 'a>
label : string
Returns: ArgumentParser<'u, 'a>
|
|
Full Usage:
p1 <|> p2
Parameters:
ArgumentParser<'a, 'b>
p2 : ArgumentParser<'a, 'b>
Returns: IArgumentStream<'a> -> Reply<'b>
|
|
Full Usage:
p >>% x
Parameters:
ArgumentParser<'a, 'b>
x : 'c
Returns: IArgumentStream<'a> -> Reply<'c>
|
|
Full Usage:
p1 >>. p2
Parameters:
ArgumentParser<'a, 'b>
p2 : ArgumentParser<'a, 'c>
Returns: IArgumentStream<'a> -> Reply<'c>
|
|
Full Usage:
(>>=) p f stream
Parameters:
ArgumentParser<'u, 'a>
f : 'a -> ArgumentParser<'u, 'b>
stream : IArgumentStream<'u>
Returns: Reply<'b>
|
|
Full Usage:
p |>> f
Parameters:
ArgumentParser<'a, 'b>
f : 'b -> 'c
Returns: IArgumentStream<'a> -> Reply<'c>
|
|
Full Usage:
between popen pclose p
Parameters:
ArgumentParser<'u, 'u>
pclose : ArgumentParser<'u, 'a>
p : ArgumentParser<'u, 'b>
Returns: IArgumentStream<'u> -> Reply<'b>
|
|
Full Usage:
choice ps stream
Parameters:
seq<ArgumentParser<'u, 'a>>
stream : IArgumentStream<'u>
Returns: Reply<'a>
|
|
Full Usage:
choiceBest ps stream
Parameters:
seq<ArgumentParser<'u, 'a>>
stream : IArgumentStream<'u>
Returns: Reply<'a>
|
|
Full Usage:
chooseParser itemType chooser stream
Parameters:
string
chooser : string option -> 'a option
stream : IArgumentStream<'b>
Returns: Reply<'a>
|
|
Full Usage:
chooseParser' itemType chooser
Parameters:
string
chooser : string -> 'a option
Returns: IArgumentStream<'b> -> Reply<'a>
|
|
Full Usage:
chooseParserFull itemType chooser stream
Parameters:
string
chooser : string option -> 'a option
stream : IArgumentStream<'b>
Returns: Reply<'a>
|
|
Full Usage:
chooseParserFull' itemType chooser
Parameters:
string
chooser : string -> 'a option
Returns: IArgumentStream<'b> -> Reply<'a>
|
|
Full Usage:
debug map' arg' stream'
Parameters:
'a -> IArgumentStream<'state> -> unit
arg' : 'a
stream' : IArgumentStream<'state>
Returns: Reply<'a>
|
|
Full Usage:
getParser ast
Parameters:
UsageAst
Returns: ArgumentParser<DocoptMap, Map<string, DocoptResult>>
|
|
|
|
|
|
|
|
|
|
Full Usage:
multipleSaveInMap f
Parameters:
'a -> 'b
Returns: 'a -> IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
Full Usage:
pLongFlag flag
Parameters:
SafeOption
Returns: IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
Full Usage:
pOption includeShort o'
Parameters:
bool
o' : SafeOption
Returns: IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
Full Usage:
pOptions allowMissing flags
Parameters:
bool
flags : SafeOptions
Returns: IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
Full Usage:
pShortFlag flag
Parameters:
SafeOption
Returns: IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
|
|
|
|
|
|
Full Usage:
pseq ps
Parameters:
seq<ArgumentParser<'a, Map<'b, 'c>>>
Returns: ArgumentParser<'a, Map<'b, 'c>>
|
|
Full Usage:
punorderedseq allowEmpty allowMissing ps
Parameters:
bool
allowMissing : bool
ps : seq<ArgumentParser<'u, 'a>>
Returns: ArgumentParser<'u, 'a list>
|
|
Full Usage:
punorderedseqWithMany allowEmpty allowMissing ps stream
Parameters:
bool
allowMissing : bool
ps : seq<bool * ArgumentParser<'u, 'a>>
stream : IArgumentStream<'u>
Returns: Reply<'a list>
|
|
|
|
Full Usage:
saveInMap key f
Parameters:
string
f : 'a -> DocoptResult
Returns: 'a -> IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
Full Usage:
saveInMapM keys f
Parameters:
seq<string>
f : 'a -> DocoptResult
Returns: 'a -> IArgumentStream<DocoptMap> -> Reply<DocoptMap>
|
|
Full Usage:
updateMap key newItem map
Parameters:
string
newItem : DocoptResult
map : Map<string, DocoptResult>
Returns: Map<string, DocoptResult>
|
|
|
|