Std.Args
21 public declarations
- allOf
&Std.Args.Args -> Str -> Array[Str]Every value a repeated option was given, in the order they were written.
- Args
What a command line turned out to say.
- ArgsError
Why a command line was refused.
- Arity
How many values an option takes.
- explain
&Std.Args.ArgsError -> StrWhy a command line was refused, written for a person to read.
- flag
&Std.Args.Spec -> Str -> Str -> Str -> Std.Args.SpecAn option that is either present or absent.
- fromCommandLine
&Std.Args.Spec -> Result[Std.Args.Args, Std.Args.ArgsError]Read the command line this program was given.
- isSet
&Std.Args.Args -> Str -> BoolWhether a flag was given.
- numberChecked
&Std.Args.Args -> Str -> Result[Option[Int], Std.Args.ArgsError]The value an option was given as a number, refusing text that is not one.
- numberOf
&Std.Args.Args -> Str -> Option[Int]The value an option was given, read as a whole number.
- Opt
One option a program accepts.
- parse
&Std.Args.Spec -> &Array[Str] -> Result[Std.Args.Args, Std.Args.ArgsError]Read arguments against a spec, in one pass.
- repeated
&Std.Args.Spec -> Str -> Str -> Str -> Std.Args.SpecAn option that may be given several times, keeping each value.
- required
&Std.Args.Spec -> Str -> Str -> Str -> Std.Args.SpecAn option that takes a value and must be given.
- rest
&Std.Args.Args -> Array[Str]Everything that was not an option or an option's value.
- spec
Str -> Str -> Std.Args.SpecA program that accepts nothing yet.
- Spec
What a program accepts, and the index that makes reading it one lookup.
- usage
&Std.Args.Spec -> StrThe usage text a program prints when asked, or when refusing.
- value
&Std.Args.Spec -> Str -> Str -> Str -> Std.Args.SpecAn option that takes a value.
- valueOf
&Std.Args.Args -> Str -> Option[Str]The value an option was given.
- valueOr
&Std.Args.Args -> Str -> Str -> StrThe value an option was given, or one to use when it was not.
