Std.Env
17 public declarations
- all
Array[Str]The arguments the program was started with, without the program's own name.
- at
Int -> Option[Str]The argument at a position, or `None` when there is none.
- count
IntThe number of arguments given.
- elapsedMilliseconds
IntMilliseconds on a clock that only moves forward.
- fail
Str -> ()Stop the program reporting failure, after writing a message.
- hasFlag
Str -> BoolWhether an argument was given, matched exactly.
- homeDirectory
Option[Str]The directory this machine calls the reader's own, when it has one.
- isSet
Str -> BoolWhether an environment variable is set at all, whatever its value.
- option
Str -> Option[Str]The value given after a named argument, or `None`.
- positional
&Array[Str] -> Array[Str]Every argument that is not a flag or a flag's value.
- searchPath
Array[Str]The program's search path, split on the separator its platform uses.
- stop
Int -> ()Stop the program with a status. Nought means it succeeded.
- succeed
()Stop the program reporting success.
- temporaryDirectory
StrWhere this machine says a program may put a file it does not intend to keep.
- variable
Str -> Option[Str]One environment variable, or `None` when it is not set.
- variableOr
Str -> Str -> StrOne environment variable, or a fallback when it is not set.
- variables
Array[(Str, Str)]Every environment variable as a name and a value.
