Skip to content

Commit 8402cc9

Browse files
authored
Insert a 'caution' about restricted --amm option in repl (#2391)
1 parent 6fd1e43 commit 8402cc9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

website/docs/commands/repl.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@ Scala CLI by default uses the normal Scala REPL.
2626

2727
If you prefer to use the [Ammonite REPL](https://ammonite.io/#Ammonite-REPL), specify `--amm` to launch it rather than the default REPL:
2828

29+
:::caution
30+
Using the Ammonite REPL is restricted and requires setting the `--power` option to be used.
31+
You can pass it explicitly or set it globally by running:
32+
33+
scala-cli config power true
34+
:::
35+
2936
<ChainedSnippets>
3037

3138
```bash ignore
32-
scala-cli repl --amm
39+
scala-cli --power repl --amm
3340
```
3441

3542
```text

0 commit comments

Comments
 (0)