Superbol_free_lib.Arg_utilsval switch :
?descr:string ->
[ `enable_disable | `with_without | `boolean | `use | `force ] ->
name:string ->
default:bool ->
bool Stdlib.ref * Ezcmd.V2.EZCMD.TYPES.arg_listswitch kind ~name ~default returns a Boolean flag flg and specifications of arguments for setting/unsetting flg. The flag has default value default, and the phrasing of the documentation for arguments depends on the kind of switch: `enable_disable and `with_without are self-explanatory; `boolean uses "Set" and "Clear" verbs. `use generates a single argument selected based on the value of default.
Accepts a plain number of bytes, or one with the usual suffix: 500M, 2G, 64k. Powers of 1024, as the sizes this reports are.
val recording :
Ezcmd.V2.EZCMD.TYPES.arg_list ->
(unit -> string list) * Ezcmd.V2.EZCMD.TYPES.arg_listrecording args is args, along with a function that lists the arguments among them that were given, as they would be given on the command line (anonymous arguments excepted): long options are listed as --name=VALUE, and single-letter ones as -nVALUE. Arguments are listed in the order they were parsed.