I learned to use
Core's command-line processing module,
Core.Command, from the very nice chapter on it in RWO1. The interface seems to have changed in
Core v. 0.10.0, and now
Core.Command.basic no longer accepts four arguments as before. However, I’m not yet sure what it expects. It looks like the command-line processing chapter in RWO2 hasn’t yet been updated (understandable, things take time) so that’s not helpful yet.
I’m puzzled by the change, because (what I think is the) documentation for v. 0.10.0 seems to put the new interface into a new function,
basic seems to implement the same interface as before. Yet I’m getting an error from code using
Command.basic that compiled previously:
Error: This function has type summary:string -> ?readme:(unit -> string) -> (unit -> unit) Command.Param.t -> Command.t It is applied to too many arguments; maybe you forgot a `;'.
(It’s not yet obvious to me how to map my existing code into the new interface. I can probably figure it out from the bare example at the top of the
Core.Command ocamldoc, but I may downgrade to v. 0.09 for the moment.)