From b362fabc3f204f35173d9c29e662d7d92abe4821 Mon Sep 17 00:00:00 2001 From: Kate Date: Thu, 17 Oct 2024 17:46:14 +0100 Subject: [PATCH] Doc: point users to ways to override the default opam root location in the opam init manpage --- src/client/opamCommands.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/opamCommands.ml b/src/client/opamCommands.ml index 2e59b57f021..3dee3730f9a 100644 --- a/src/client/opamCommands.ml +++ b/src/client/opamCommands.ml @@ -178,7 +178,8 @@ let init cli = `P "Initialise the opam state, or update opam init options"; `P (Printf.sprintf "The $(b,init) command initialises a local \"opam root\" (by default, \ - $(i,~%s.opam%s)) that holds opam's data and packages. This is a \ + $(i,~%s.opam%s) unless overriden by $(i,--root) or the $(i,OPAMROOT) \ + environment variable) that holds opam's data and packages. This is a \ necessary step for normal operation of opam. The initial software \ repositories are fetched, and an initial 'switch' can also be \ installed, according to the configuration and options. These can be \