@@ -26,18 +26,18 @@ OPTIONS:
2626 --update, -U update manifest before building
2727
2828COMMANDS:
29- new <name> [ <temp>] create a Lean package in a new directory
30- init <name> [ <temp>] create a Lean package in the current directory
31- build [ <targets>...] build targets
29+ new <name> <temp> create a Lean package in a new directory
30+ init <name> <temp> create a Lean package in the current directory
31+ build <targets>... build targets
3232 update update dependencies and save them to the manifest
3333 upload <tag> upload build artifacts to a GitHub release
3434 clean remove build outputs
3535 script manage and run workspace scripts
3636 scripts shorthand for `lake script list`
3737 run <script> shorthand for `lake script run`
3838 serve start the Lean language server
39- env <cmd> [ <args>...] execute a command in the workspace 's environment
40- exe <exe> [ <args>...] build an exe and run it in the workspace 's environment
39+ env <cmd> <args>... execute a command in Lake 's environment
40+ exe <exe> <args>... build an exe and run it in Lake 's environment
4141
4242See `lake help <command>` for more information on a specific command."
4343
@@ -97,7 +97,7 @@ TARGET EXAMPLES: build the ...
9797 a/+A:c C file of module `A` of package `a`
9898 :foo facet `foo` of the root package
9999
100- A bare `build` command will build the default facet of the root package.
100+ A bare `lake build` command will build the default facet of the root package.
101101Package dependencies are not updated during a build."
102102
103103def helpUpdate :=
@@ -161,12 +161,12 @@ def helpScriptRun :=
161161"Run a script
162162
163163USAGE:
164- lake script run [<package>/]<script> [<args>...]
164+ lake script run [[ <package>/]<script>] [<args>...]
165165
166166This command runs the given `script` from `package`, passing `args` to it.
167167Defaults to the root package.
168168
169- A bare `run` command will run the default script(s) of the root package
169+ A bare `lake run` command will run the default script(s) of the root package
170170(with no arguments)."
171171
172172def helpScriptDoc :=
@@ -188,38 +188,42 @@ with the package configuration's `moreServerArgs` field and `args`.
188188"
189189
190190def helpEnv :=
191- "Execute a command in the workspace 's environment
191+ "Execute a command in Lake 's environment
192192
193193USAGE:
194- lake env <cmd> [<args>...]
194+ lake env [ <cmd>] [<args>...]
195195
196196Spawns a new process executing `cmd` with the given `args` and with
197- the environment set based on the workspace configuration and the detected
198- Lean/Lake installations .
197+ the environment set based on the detected Lean/Lake installations and
198+ the workspace configuration (if it exists) .
199199
200200Specifically, this command sets the following environment variables:
201201
202202 LAKE set to the detected Lake executable
203203 LAKE_HOME set to the detected Lake home
204- LEAN_SYSROOT set to the detected Lean sysroot
204+ LEAN_SYSROOT set to the detected Lean toolchain directory
205205 LEAN_AR set to the detected Lean `ar` binary
206- LEAN_CC set to the detected `cc` (if not using bundled one)
207- LEAN_PATH adds the workspace's library directories
208- LEAN_SRC_PATH adds the workspace's source directories
209- PATH adds the workspace's library directories (Windows)
210- DYLD_LIBRARY_PATH adds the workspace's library directories (MacOS)
211- LD_LIBRARY_PATH adds the workspace's library directories (other Unix)"
206+ LEAN_CC set to the detected `cc` (if not using the bundled one)
207+ LEAN_PATH adds Lake's and the workspace's Lean library dirs
208+ LEAN_SRC_PATH adds Lake's and the workspace's source dirs
209+ PATH adds Lean's, Lake's, and the workspace's binary dirs
210+ PATH adds Lean's and the workspace's library dirs (Windows)
211+ DYLD_LIBRARY_PATH adds Lean's and the workspace's library dirs (MacOS)
212+ LD_LIBRARY_PATH adds Lean's and the workspace's library dirs (other)
213+
214+ A bare `lake env` will print out the variables set and their values,
215+ using the form NAME=VALUE like the POSIX `env` command."
212216
213217def helpExe :=
214- "Build an executable target and run it in the workspace 's environment
218+ "Build an executable target and run it in Lake 's environment
215219
216220USAGE:
217221 lake exe <exe-target> [<args>...]
218222
219223Looks for the executable target in the workspace (see `lake help build` to
220224learn how to specify targets), builds it if it is out of date, and then runs
221- it with the given `args` in the workspace 's environment (see `lake help env`
222- for how the environment is set)."
225+ it with the given `args` in Lake 's environment (see `lake help env` for how
226+ the environment is set up )."
223227
224228def helpScript : (cmd : String) → String
225229| "list" => helpScriptList
0 commit comments