Module Command.Anons
val (%:) : Core_kernel__.Import.string -> 'a Core__Core_command.Arg_type.t -> 'a t
(name %: typ)
specifies a required anonymous argument of typetyp
.The
name
must not be surrounded by whitespace; if it is, an exn will be raised.If the
name
is surrounded by a special character pair (<>, {}, [] or (),)name
will remain as-is, otherwise,name
will be uppercased.In the situation where
name
is only prefixed or only suffixed by one of the special character pairs, or different pairs are used (e.g., "<ARG]"), an exn will be raised.The (possibly transformed)
name
is mentioned in the generated help for the command.
val sequence : 'a t -> 'a Core_kernel__.Import.list t
sequence anons
specifies a sequence of anonymous arguments. An exception will be raised ifanons
matches anything other than a fixed number of anonymous arguments.
val non_empty_sequence_as_pair : 'a t -> ('a * 'a Core_kernel__.Import.list) t
non_empty_sequence_as_pair anons
andnon_empty_sequence_as_list anons
are likesequence anons
except that an exception will be raised if there is not at least one anonymous argument given.
val non_empty_sequence_as_list : 'a t -> 'a Core_kernel__.Import.list t
val maybe : 'a t -> 'a Core_kernel__.Import.option t
(maybe anons)
indicates that some anonymous arguments are optional.