Library
Module
Module type
Parameter
Class
Class type
Call init
before using any of the other funtions (unless you really know what you are doing). let argc, args = CLI.init () in ...
will compute argc
and transform Sys.argv into the string list args
.
return true if flag was present on the command line, false otherwise
return false if flag was present on the command line, true otherwise
read an optional int from the command line
read an optional string from the command line
read an optional float from the command line
read an optional int from the command line, or use the provided default if option was not seen on the command line
read an optional string from the command line, or use the provided default if option was not seen on the command line
read an optional float from the command line, or use the provided default if option was not seen on the command line