Skip to content

Commit cb4a577

Browse files
authored
Update the docs to no longer treat --power as a launcher-only option (#2478)
1 parent 0860d87 commit cb4a577

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

website/docs/guides/old-runner-migration.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ scala-cli Source1.scala Source2.scala -S 3.2 -- programArg1 programArg2
7272
```
7373

7474
:::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`.
7676
Those have to be passed before the inputs section (before any source inputs).
7777

7878
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
8282
```
8383

8484
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.
8786

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:
8988

9089
```bash
91-
scala-cli --power package --help
90+
scala-cli --cli-version nightly package --help
9291
```
9392

9493
:::

0 commit comments

Comments
 (0)