Clarify --only-packages
This commit is contained in:
parent
f3cdbfa66f
commit
f1f95cda37
13
bin/main.ml
13
bin/main.ml
|
@ -151,9 +151,11 @@ let common =
|
||||||
& opt (some string) None
|
& opt (some string) None
|
||||||
& info ["only-packages"] ~docs ~docv:"PACKAGES"
|
& info ["only-packages"] ~docs ~docv:"PACKAGES"
|
||||||
~doc:{|Ignore stanzas referring to a package that is not in $(b,PACKAGES).
|
~doc:{|Ignore stanzas referring to a package that is not in $(b,PACKAGES).
|
||||||
$(b,PACKAGES) is a coma-separated list of package name. You need to
|
$(b,PACKAGES) is a coma-separated list of package name.
|
||||||
use this option in your $(i,<package>.opam) file if your project
|
Note that this has the same effect as deleting the relevant stanzas
|
||||||
contains several packages.|}
|
from jbuild files. It is mostly meant for releases.
|
||||||
|
During development, it is likely that what you want instead is to
|
||||||
|
build a particular $(b,<package>.install) target.|}
|
||||||
)
|
)
|
||||||
in
|
in
|
||||||
let ddep_path =
|
let ddep_path =
|
||||||
|
@ -202,7 +204,10 @@ let common =
|
||||||
Arg.(value
|
Arg.(value
|
||||||
& opt (some string) None
|
& opt (some string) None
|
||||||
& info ["p"; for_release] ~docs ~docv:"PACKAGES"
|
& info ["p"; for_release] ~docs ~docv:"PACKAGES"
|
||||||
~doc:{|Shorthand for $(b,--root . --only-packages PACKAGE).|})
|
~doc:{|Shorthand for $(b,--root . --only-packages PACKAGE). You must use
|
||||||
|
this option in your $(i,<package>.opam) files, in order to build
|
||||||
|
only what's necessary when your project contains multiple packages
|
||||||
|
as well as getting reproducible builds.|})
|
||||||
in
|
in
|
||||||
let root_and_only_packages =
|
let root_and_only_packages =
|
||||||
let merge root only_packages release =
|
let merge root only_packages release =
|
||||||
|
|
Loading…
Reference in New Issue