command-line.parser.private vocabulary
Factor handbook ยป Vocabulary index


Summary

Metadata
Parents:command-line.parser


Words

Tuple classes
ClassSuperclassSlots
ambiguous-option option-errorarg options
cannot-convert-value option-errorstr converter
expected-arguments option-erroroption
invalid-value option-erroroption value
option-error tuple
required-options option-erroroptions
unknown-option option-errorstr
unrecognized-arguments option-errorargs
usage-error option-erroroptions


Generic words
WordStack effect
>option( obj -- option )
argvalid?( val validater -- ? )


Symbol words
print-help?


Ordinary words
WordStack effect
(parse-arguments)( optional positional command-line -- positional' )
HELP( -- value )
ambiguous-option( arg options -- * )
argconvert( str/f converter -- val )
cannot-convert-value( str converter -- * )
default-options( options -- defaults )
expected-arguments( option -- * )
find-option( arg options -- option )
get-program-name( -- name )
invalid-value( option value -- * )
option-#args( option -- #args )
option-argument( option -- argument )
option-convert( arg option -- value )
option-description( option -- description )
option-error( -- * )
option-meta( option -- meta/f )
option-name( option -- name )
option-value( args option -- args' value )
option-variable( option -- variable )
optional?( option -- ? )
parse-arguments( options command-line -- arguments )
parse-optional( options command-line -- command-line' )
parse-positional( option command-line -- command-line' )
positional?( option -- ? )
print-arguments( options -- )
print-help( options -- )
print-options( options -- )
print-program-name( -- )
print-short-usage( options -- )
required-options( options -- * )
unknown-option( str -- * )
unrecognized-arguments( args -- * )
usage-error( options -- * )


Class predicate words
WordStack effect
ambiguous-option?( object -- ? )
cannot-convert-value?( object -- ? )
expected-arguments?( object -- ? )
invalid-value?( object -- ? )
option-error?( object -- ? )
required-options?( object -- ? )
unknown-option?( object -- ? )
unrecognized-arguments?( object -- ? )
usage-error?( object -- ? )


Files