package commons

  1. Overview
  2. Docs

Module Arg_helpersSource

Sourcetype arg_spec_full = Arg.key * Arg.spec * Arg.doc
Sourcetype cmdline_options = arg_spec_full list
Sourcetype options_with_title = string * string * arg_spec_full list
Sourcetype cmdline_sections = options_with_title list
Sourceval parse_options : cmdline_options -> Arg.usage_msg -> string array -> string list
Sourceval usage : Arg.usage_msg -> cmdline_options -> unit
Sourceval short_usage : Arg.usage_msg -> short_opt:cmdline_options -> unit
Sourceval long_usage : Arg.usage_msg -> short_opt:cmdline_options -> long_opt:cmdline_sections -> unit
Sourceval arg_parse2 : cmdline_options -> Arg.usage_msg -> (unit -> unit) -> string list
Sourcetype flag_spec = Arg.key * Arg.spec * Arg.doc
Sourcetype action_spec = Arg.key * Arg.doc * action_func
Sourceand action_func = string list -> unit
Sourcetype cmdline_actions = action_spec list
Sourceexception WrongNumberOfArguments
Sourceval mk_action_0_arg : (unit -> unit) -> action_func
Sourceval mk_action_1_arg : (string -> unit) -> action_func
Sourceval mk_action_2_arg : (string -> string -> unit) -> action_func
Sourceval mk_action_3_arg : (string -> string -> string -> unit) -> action_func
Sourceval mk_action_4_arg : (string -> string -> string -> string -> unit) -> action_func
Sourceval mk_action_n_arg : (string list -> unit) -> action_func
Sourceval options_of_actions : string ref -> cmdline_actions -> cmdline_options
Sourceval do_action : Arg.key -> string list -> cmdline_actions -> unit
Sourceval action_list : cmdline_actions -> Arg.key list
OCaml

Innovation. Community. Security.