Module Core__Command.Anons
Anonymous command-line argument specification.
val (%:) : Core_kernel__.Import.string -> 'a Arg_type.t -> 'a t(name %: typ)specifies a required anonymous argument of typetyp.The
namemust not be surrounded by whitespace; if it is, an exn will be raised.If the
nameis surrounded by a special character pair (<>, {}, [] or (),)namewill remain as-is, otherwise,namewill be uppercased.In the situation where
nameis 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)
nameis mentioned in the generated help for the command.
val sequence : 'a t -> 'a Core_kernel__.Import.list tsequence anonsspecifies a sequence of anonymous arguments. An exception will be raised ifanonsmatches anything other than a fixed number of anonymous arguments.
val non_empty_sequence_as_pair : 'a t -> ('a * 'a Core_kernel__.Import.list) tnon_empty_sequence_as_pair anonsandnon_empty_sequence_as_list anonsare likesequence anonsexcept 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 tval maybe : 'a t -> 'a Core_kernel__.Import.option t(maybe anons)indicates that some anonymous arguments are optional.