summaryrefslogtreecommitdiffstats
path: root/stdlib/arg.mli
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>1997-05-21 15:28:30 +0000
committerDamien Doligez <damien.doligez-inria.fr>1997-05-21 15:28:30 +0000
commit7942914a6ee255063a802c1bf595bfa62f2f37dc (patch)
tree8cdc61319d0fbf9b4e49ee00a7310b4978652153 /stdlib/arg.mli
parent69d8a82e3f05b57efadcdb0422b53a1e398c3d23 (diff)
gc.mli: changement de space_overhead
arg.mli: bricoles dans la doc git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1569 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/arg.mli')
-rw-r--r--stdlib/arg.mli10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/arg.mli b/stdlib/arg.mli
index 35e085cc8..ca14be315 100644
--- a/stdlib/arg.mli
+++ b/stdlib/arg.mli
@@ -47,7 +47,7 @@ type spec =
val parse : (string * spec * string) list -> (string -> unit) -> string -> unit
(*
- [parse speclist anonfun errmsg] parses the command line.
+ [parse speclist anonfun usage_msg] parses the command line.
[speclist] is a list of triples [(key, spec, doc)].
[key] is the option keyword, it must start with a [-].
[spec] gives the option type and the function to call when this option
@@ -60,14 +60,14 @@ val parse : (string * spec * string) list -> (string -> unit) -> string -> unit
If an error occurs, [parse] exits the program, after printing an error
message as follows:
- The reason for the error: unknown option, invalid or missing argument, etc.
-- [errmsg]
+- [usage_msg]
- The list of options, each followed by the corresponding [doc] string.
For the user to be able to specify anonymous arguments starting with a
[-], include for example [("--", String anonfun, doc)] in [speclist].
By default, [parse] recognizes a unit option [-help], which will
- display [errmsg] and the list of options, and exit the program.
+ display [usage_msg] and the list of options, and exit the program.
You can override this behaviour by specifying your own [-help]
option in [speclist].
*)
@@ -78,8 +78,8 @@ exception Bad of string
val usage: (string * spec * string) list -> string -> unit
(*
- [usage speclist errmsg]
- [speclist] and [errmsg] are the same as for [parse]. [usage]
+ [usage speclist usage_msg]
+ [speclist] and [usage_msg] are the same as for [parse]. [usage]
prints the same error message that [parse] prints in case of
error.
*)