Revision: 420
Author: ygrekheretix
Date: Tue Nov 12 15:35:37 2013 UTC
Log: OptParse.OptParser.error should return 'a not unit (Closes issue
18)
http://code.google.com/p/ocaml-extlib/source/detail?r=420
Modified:
/trunk/extlib/optParse.mli
=======================================
--- /trunk/extlib/optParse.mli Mon Mar 6 20:53:18 2006 UTC
+++ /trunk/extlib/optParse.mli Tue Nov 12 15:35:37 2013 UTC
@@ -441,7 +441,7 @@
(** {6 Output and error handling} *)
- val error : t -> ?chn: out_channel -> ?status: int -> string -> unit
+ val error : t -> ?chn: out_channel -> ?status: int -> string -> 'a
(** Display an error message and exit the program. The error
message is printed to the channel [chn] (default is
[Pervasives.stderr]) and the program exits with exit status