Skip to content

Commit

Permalink
Add DUNE_WORKSPACE env var
Browse files Browse the repository at this point in the history
This variable is equivalent to setting --workspace.

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Dec 23, 2018
1 parent 0fccd37 commit d6f5f79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ unreleased
- Fix handling of Control+C in watch mode (#1678, fixes #1671, @diml)

- Look for jsoo runtime in the same dir as the `js_of_ocaml` binary
when the ocamlfind package is not available (#1467, @nobj)
when the ocamlfind package is not available (#1467, @nojb)

- Add `DUNE_WORKSPACE` variable. This variable is equivalent to setting
`--workspace` in the command line. (#xxxx, fix #1503, @rgrinberg)

1.6.2 (05/12/2018)
------------------
Expand Down
5 changes: 3 additions & 2 deletions bin/common.ml
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ let term =
$(b,--verbose) as well, to make sure that commands are printed
before they are being executed.|})
and workspace_file =
let doc = "Use this specific workspace file instead of looking it up." in
Arg.(value
& opt (some path) None
& info ["workspace"] ~docs ~docv:"FILE"
~doc:"Use this specific workspace file instead of looking it up.")
& info ["workspace"] ~docs ~docv:"FILE" ~doc
~env:(Arg.env_var ~doc "DUNE_WORKSPACE"))
and auto_promote =
Arg.(value
& flag
Expand Down

0 comments on commit d6f5f79

Please sign in to comment.