Source

ocaml-core / base / core / extended / lib / fcommand.mli

Diff from to

base/core/extended/lib/fcommand.mli

 (* [const v] injects the value [v] into main's parameters *)
 val const : 'a -> ('a -> 'm, 'm) t
 
-(* [either name ++ spec1 ++ spec2] ensures that at most one spec is supplied *)
-val either : string -> ('a option -> 'b, 'a option -> 'a option -> 'b) t
-
 (** [spec1 ++ spec2] composes command-line specifications [spec1] and
     [spec2].  Parameters specified by [spec1] will come before those
     specified by [spec2] in the eventual main function. *)
 val cmd :
   summary:string
   -> ?readme:(unit -> string)
+  -> ?autocomplete:Command.Autocomplete.t
   -> ?global_flags:(unit Command.Flag.t list)
   -> ('main, unit) t
   -> 'main