Skip to content

Commit 00a172a

Browse files
committed
Delete useless --preload option
This was a holdover from `tl` that's been replaced with `global-env-def` closes #62
1 parent f2de486 commit 00a172a

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

build/cyan/cli.lua

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/tlconfig.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ This file describes the layout of your project by returning a table with the fol
1212
| `gen_target` | `--gen-target` | `tl.TargetMode` | Minimum Lua version for generated code. One of `5.1` or `5.3` |
1313
| `include_dir` | `-I` `--include-dir` | `{string}` | Add each path provided to `package.path` and `package.cpath` |
1414
| `include` | | `{string}` | A list of [patterns](#Patterns) describing what files to include |
15-
| `preload_modules` | `-l` `--preload` | `{string}` | Execute the equivalent of `require(<module>)` for each provided name |
1615
| `global_env_def` | `--global-env-def` | `string` | Load this file before type checking |
1716
| `scripts` | | <code>{string : {string : string &#124; {string}}}</code> | A map of commands and hooks to filenames, see [scripts](#Scripts) |
1817
| | `--no-script` | | Disables scripts, see [scripts](#Scripts) |

src/cyan/cli.tl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ local keys <const>, from <const>, sort <const>, ivalues <const>
2222
local parser <const> = argparse("cyan", "The Teal build system", nil)
2323
parser:add_help(false)
2424

25-
parser:option("-l --preload", "Execute the equivalent of require('modulename') before processing Teal files.", nil, nil, nil, nil)
26-
:argname("<modulename>")
27-
:count("*")
28-
2925
parser:option("--global-env-def", "Load <module-name> before typechecking. Use this to define types provided by your environment.", nil, nil, nil, nil)
3026
:argname("<module-name>")
3127
:count("?")

0 commit comments

Comments
 (0)