[ocaml-extlib] r420 committed - OptParse.OptParser.error should return 'a not unit (Closes issue 18)

1 view
Skip to first unread message

codesite...@google.com

unread,
Nov 12, 2013, 10:35:58 AM11/12/13
to ocaml-extl...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages