Skip to content

Commit

Permalink
Update the docs to no longer treat --power as a launcher-only option (
Browse files Browse the repository at this point in the history
  • Loading branch information
Gedochao committed Oct 20, 2023
1 parent 0860d87 commit cb4a577
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions website/docs/guides/old-runner-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ scala-cli Source1.scala Source2.scala -S 3.2 -- programArg1 programArg2
```

:::note
The exception to this rule are the launcher options, like `--power` or `--cli-version`.
The exception to this rule are the launcher options, like `--cli-version` or `--cli-scala-version`.
Those have to be passed before the inputs section (before any source inputs).

For example, to explicitly specify the launcher should run Scala CLI `v0.1.20`, pass it like this:
Expand All @@ -82,13 +82,12 @@ scala-cli --cli-version 0.1.20 Source1.scala Source2.scala -- programArg1 progra
```

Also, if a Scala CLI sub-command is being passed explicitly, all launcher options have to be passed before the
sub-command. This is especially important for `power` mode commands, as those need to be called with the `--power`
launcher option.
sub-command.

For example, to call [the `package` sub-command](../commands/package.md), do it like this:
For example, to call [the `package` sub-command](../commands/package.md) using the nightly CLI version, do it like this:

```bash
scala-cli --power package --help
scala-cli --cli-version nightly package --help
```

:::
Expand Down

0 comments on commit cb4a577

Please sign in to comment.