Module Optparser.Error

Option parser errors.

module Option : sig ... end
module Argument : sig ... end
type t = [
  1. | `Missing_mandatory_option of Option.option_error
    (*

    Missing mandatory option for invoking the CLI command

    *)
  2. | `Invalid_arguments_length of Argument.invalid_arguments_length_error
    (*

    Mismatched number of arguments to an option

    *)
  3. | `Argument_reader_failure of Option.option_error
    (*

    Failure to read an argument to an option from a string

    *)
  4. | `Not_an_option of Option.option_error
    (*

    Unrecognized option provided

    *)
]

The type of CLI arguments parsing errors.