scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Global mechanism to validate input option from CLI and using directives

Open lwronski opened this issue 3 years ago • 0 comments

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

ScalaCLI accepts a lot of inputs for various functionalities. Some of them are not compatible with another one. For example, repl command accepts --js flag, but silently ignore them, it was reported in the following issue. The second problem is, that scala-cli allows to specify --js --deb but silently ignore --deb flag.

  • https://github.com/VirtusLab/scala-cli/issues/783
  • https://github.com/VirtusLab/scala-cli/issues/915

Describe the solution you'd like Scala CLI need global mechanism which allows to control with option should be enabled for specific command.

lwronski avatar Apr 26 '22 13:04 lwronski