Skip to content

Commit

Permalink
Add --disable-private-check runner option (#9556)
Browse files Browse the repository at this point in the history
I forgot to add the `--disable-private-check` cmdline option in #8202. This PR fixes this:
```
> enso -h | grep -A2 private
--disable-private-check                Disables private module
checking at runtime. Useful for
tests.

```
  • Loading branch information
Akirathan authored Mar 27, 2024
1 parent af5354b commit e1fb186
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/runner/src/main/scala/org/enso/runner/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ object Main {
)
.build()

val disablePrivateCheckOption = CliOption.builder
.longOpt(DISABLE_PRIVATE_CHECK_OPTION)
.desc("Disables private module checking at runtime. Useful for tests.")
.build()

val options = new Options
options
.addOption(help)
Expand Down Expand Up @@ -445,6 +450,7 @@ object Main {
.addOption(skipGraalVMUpdater)
.addOption(executionEnvironmentOption)
.addOption(warningsLimitOption)
.addOption(disablePrivateCheckOption)

options
}
Expand Down

0 comments on commit e1fb186

Please sign in to comment.