module type S_no_parameter =sig..end
Generic signature of a parameter, without parameter.
type t
Type of the parameter (an int, a string, etc). It is concrete for each module implementing this signature.
val set : t -> unitSet the option.
val add_set_hook : (t -> t -> unit) ->
unitAdd a hook to be called after the function Parameter_sig.S_no_parameter.set is called.
The first parameter of the hook is the old value of the parameter while
the second one is the new value.
val add_update_hook : (t -> t -> unit) ->
unitAdd a hook to be called when the value of the parameter changes (by
calling Parameter_sig.S_no_parameter.set or indirectly by the project library. The first parameter
of the hook is the old value of the parameter while the second one is the
new value. Note that it is **not** specified if the hook is applied just
before or just after the effective change.
val get : unit -> tOption value (not necessarily set on the current command line).
val clear : unit -> unitSet the option to its default value, that is the value if set was
never called.
val is_default : unit -> boolIs the option equal to its default value?
val get_default : unit -> tGet the default value for the option.
val option_name : stringName of the option on the command-line
val print_help : Stdlib.Format.formatter -> unitPrint the help of the parameter in the given formatter as it would be printed on the command line by -<plugin>-help. For invisible parameters, the string corresponds to the one returned if it would be not invisible.
include State_builder.S
val equal : t -> t -> bool
val add_aliases : ?visible:bool -> ?deprecated:bool -> string list -> unitAdd some aliases for this option. That is other option names which have
exactly the same semantics that the initial option.
If visible is set to false, the aliases do not appear in help messages.
If deprecated is set to true, the use of the aliases emits a warning.
Invalid_argument if one of the strings is emptyvisible and deprecated arguments.