From b1e140eef360d1802e926892225afcb904e2078c Mon Sep 17 00:00:00 2001 From: Jeremie Dimino Date: Thu, 27 Jul 2017 12:06:06 +0100 Subject: [PATCH] Add --destdir + document --destdir, --prefix and --libdir Should help #202 --- bin/main.ml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/bin/main.ml b/bin/main.ml index 4f4d3c4c..6f653dbb 100644 --- a/bin/main.ml +++ b/bin/main.ml @@ -756,8 +756,24 @@ let install_uninstall ~what = in ( Term.(const go $ common - $ Arg.(value & opt (some dir) None & info ["prefix"]) - $ Arg.(value & opt (some dir) None & info ["libdir"]) + $ Arg.(value + & opt (some dir) None + & info ["destdir"; "prefix"] + ~docv:"PREFIX" + ~doc:"Directory where files are copied. For instance binaries \ + are copied into $(i,\\$prefix/bin), library files into \ + $(i,\\$prefix/lib), etc... If defaults to the current opam \ + prefix if opam is available and configured, otherwise it uses \ + the same prefix as the ocaml compiler.") + $ Arg.(value + & opt (some dir) None + & info ["libdir"] + ~docv:"PATH" + ~doc:"Directory where library files are copied, relative to \ + $(b,prefix) or absolute. If $(b,--prefix) \ + is specified the default is $(i,\\$prefix/lib), otherwise \ + it is the output of $(b,ocamlfind printconf destdir)" + ) $ Arg.(value & pos_all string [] name_)) , Term.info what ~doc ~man:help_secs)