Module Command.Flag
Command-line flag specifications.
val required : 'a Arg_type.t -> 'a tRequired flags must be passed exactly once.
val optional : 'a Arg_type.t -> 'a Core_kernel__.Import.option tOptional flags may be passed at most once.
val optional_with_default : 'a -> 'a Arg_type.t -> 'a toptional_with_defaultflags may be passed at most once, and default to a given value.
val listed : 'a Arg_type.t -> 'a Core_kernel__.Import.list tlistedflags may be passed zero or more times.
val one_or_more : 'a Arg_type.t -> ('a * 'a Core_kernel__.Import.list) tone_or_moreflags must be passed one or more times.
val no_arg : Core_kernel__.Import.bool tno_argflags may be passed at most once. The boolean returned is true iff the flag is passed on the command line.
val no_arg_register : key:'a Core_kernel.Univ_map.With_default.Key.t -> value:'a -> Core_kernel__.Import.bool tno_arg_register ~key ~valueis likeno_arg, but associatesvaluewithkeyin the autocomplete environment.
val no_arg_some : 'a -> 'a Core_kernel__.Import.option tno_arg_some valueis likeno_arg, but will returnSome valueif the flag is passed on the command line, and returnNoneotherwise.
val no_arg_abort : exit:(Core_kernel__.Import.unit -> Core_kernel__.Std_internal.never_returns) -> Core_kernel__.Import.unit tno_arg_abort ~exitis likeno_arg, but aborts command-line parsing by callingexit. This flag type is useful for "help"-style flags that just print something and exit.
val escape : Core_kernel__.Import.string Core_kernel__.Import.list Core_kernel__.Import.option tescapeflags may be passed at most once. They cause the command line parser to abort and pass through all remaining command line arguments as the value of the flag.A standard choice of flag name to use with
escapeis"--".