package minicli
Module CLI
Exceptions
Initialization
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.
Parse mandatory options
return true if flag was present on the command line, false otherwise
return false if flag was present on the command line, true otherwise
Parse optional options
read an optional int from the command line
read an optional string from the command line
read an optional float from the command line
Parse optional options with a default value
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