-
Notifications
You must be signed in to change notification settings - Fork 926
rustfmt --config-help
should not display hidden options
#2300
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
Comments
@nrc How do we know which options are hidden? |
@kbacha there are some comments in config.rs, iirc, it's only like three options |
I would like to take a shot at this. I see 3 options verbose, file_lines and width_heuristics mentioned under "not user facing". I have attempted to hide these 3 options on running 'config-help' by modifying print_docs(). I added a vector - Is this the way to go? |
@vishalsodani sorry for the late reply, I think that approach is fine, however, I would make |
@nrc Thanks! Do I need to write test for this change? If yes, where or how do I go about writing the test? |
@vishalsodani nah, I don't think this needs a test |
such as
width_heuristics
.reported in #2299
The text was updated successfully, but these errors were encountered: