File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ scala-cli Source1.scala Source2.scala -S 3.2 -- programArg1 programArg2
72
72
```
73
73
74
74
::: note
75
- The exception to this rule are the launcher options, like ` --power ` or ` --cli-version ` .
75
+ The exception to this rule are the launcher options, like ` --cli-version ` or ` --cli-scala -version ` .
76
76
Those have to be passed before the inputs section (before any source inputs).
77
77
78
78
For example, to explicitly specify the launcher should run Scala CLI ` v0.1.20 ` , pass it like this:
@@ -82,13 +82,12 @@ scala-cli --cli-version 0.1.20 Source1.scala Source2.scala -- programArg1 progra
82
82
```
83
83
84
84
Also, if a Scala CLI sub-command is being passed explicitly, all launcher options have to be passed before the
85
- sub-command. This is especially important for ` power ` mode commands, as those need to be called with the ` --power `
86
- launcher option.
85
+ sub-command.
87
86
88
- For example, to call [ the ` package ` sub-command] ( ../commands/package.md ) , do it like this:
87
+ For example, to call [ the ` package ` sub-command] ( ../commands/package.md ) using the nightly CLI version , do it like this:
89
88
90
89
``` bash
91
- scala-cli --power package --help
90
+ scala-cli --cli-version nightly package --help
92
91
```
93
92
94
93
:::
You can’t perform that action at this time.
0 commit comments