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

Add help parameter to print specific options for ScalaNative and Scal… #489

Merged
merged 2 commits into from
Dec 16, 2021

Conversation

lwronski
Copy link
Contributor

@lwronski lwronski commented Dec 13, 2021

…aJs groups

By default, options for ScalaJs and ScalaNative will be hidden. These options will be displayed if someone explicitly pass --help-js or --help-native to options.

I added a new hiddenGroups parameter in HelpFormat to hide all parameters from selected groups by default:

ScalaComand.scala
...
.withHiddenGroups(Some(Seq(
         "Scala.JS",
         "Scala Native"
       )))

and then, to display for example options for ScalaJs, it is required to specify --help-js.
Printing options for ScalaJS is handled in HelpGroupOptions.scala. Before printing help, I will remove the ScalaJS from the sequence of hidden groups in HelpFormat.

@lwronski lwronski force-pushed the rework-help-message branch 4 times, most recently from 6c2a016 to b3eef58 Compare December 14, 2021 09:27
@lwronski lwronski marked this pull request as ready for review December 14, 2021 09:29
@lwronski lwronski linked an issue Dec 16, 2021 that may be closed by this pull request
@lwronski lwronski merged commit 8d8248c into VirtusLab:master Dec 16, 2021
@lwronski lwronski deleted the rework-help-message branch January 26, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework help messages
2 participants