Skip to content

Running Scala CLI without any arguments should start a REPL #1249

Closed
@romanowski

Description

@romanowski

Is your feature request related to a problem? Please describe.

This issue was created based on the comments in Scala CLI SIP.

The current scala command starts repl with no arguments provided but with scala-cli repl subcommand is needed. I think we should change the behaviour to match what scala is doing now: running repl when no commands are provided.

Describe the solution you'd like

When running scala-cli without any command, a reply should be started.

Additional context

We would need to find a way to display help for the whole scala-cli' tool. With the default changed, user running scala-cli --helpmay expect either help for the wholescala-clior therepl` command. I can see 2 options:

  • scala-cli --help prints the help for the whole tool with the mention that to see a help dedicated for repl command run scala-cli repl --help
  • scala-cli --help prints the help for repl command with the mention that to see the whole help run e.g. scala-cli --help --all

I am personally prefer the former mechanism.

Metadata

Metadata

Assignees

Labels

SIP-46All the issues related to SIP-46 to turn Scala CLI into the official scala runner command.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions