scala-cli
scala-cli copied to clipboard
Global mechanism to validate input option from CLI and using directives
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.