Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ScalaCommand to enforce respecting help options #1440

Merged
merged 3 commits into from
Oct 13, 2022

Conversation

Gedochao
Copy link
Contributor

@Gedochao Gedochao commented Oct 11, 2022

The following sub-commands will now respect help options (--help-native, --help-js, --scalac-help, other compiler options printing an ouptut regardless of inputs, etc):

  • metabrowse
  • export
  • fmt
  • setup-ide
  • doc

The idea is to prevent us from having to fix bugs like #1407 over and over again in the future.
It is now a lot easier to centralise certain pieces of logic in ScalaCommand, if they apply for each and every sub-command.

@Gedochao Gedochao added bug Something isn't working UX labels Oct 11, 2022
@Gedochao Gedochao marked this pull request as ready for review October 11, 2022 11:43
Copy link
Contributor

@wleczny wleczny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but lest's enforce all options to have loggingOptions in a separate PR.

@Gedochao Gedochao merged commit ab05d82 into VirtusLab:main Oct 13, 2022
@Gedochao Gedochao deleted the refactor-scala-command branch October 13, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants