Handbook
Glossary
option-convert ( arg option -- value )
Vocabulary
command-line
.
parser
.
private
Inputs
arg
an
object
option
an
object
Outputs
value
an
object
Definition
USING:
accessors
combinators.short-circuit
kernel
;
IN:
command-line.parser.private
::
option-convert
( arg option -- value )
arg
[
option
expected-arguments
]
unless*
option
{
[
convert>>
]
[
type>>
]
}
1||
[
argconvert
]
when*
option
{
[
validate>>
]
[
type>>
]
}
1||
[
dupd
argvalid?
[
option arg
invalid-value
]
unless
]
when*
;