Skip to content

Commit

Permalink
document object file loading
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://yquem.inria.fr/net/yquem/devel/caml/svn/ocaml/trunk@4366 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
garrigue committed Feb 8, 2002
1 parent af17cc1 commit f42d887
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions man/ocaml.m
Expand Up @@ -13,6 +13,9 @@
.BI \-I \ lib-dir
]
[
.I object-files
]
[
.I script-file
]
.SH DESCRIPTION
Expand All @@ -36,6 +39,14 @@
terminates
.BR ocaml (1).

If one or more
.I object-files
(ending in
.B .cmo
or
.B .cma
) are given, they are loaded silently before starting the toplevel.

If a
.I script-file
is given, phrases are read silently from the file, errors printed on
Expand Down
2 changes: 1 addition & 1 deletion toplevel/topmain.ml
Expand Up @@ -14,7 +14,7 @@

open Clflags

let usage = "Usage: ocaml <options> [script-file]\noptions are:"
let usage = "Usage: ocaml <options> <object-files> [script-file]\noptions are:"

let preload_objects = ref []

Expand Down

0 comments on commit f42d887

Please sign in to comment.