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

Last round of softwrapping help strings #15142

Merged
merged 2 commits into from Apr 15, 2022

Conversation

thejcannon
Copy link
Member

There's still tons more user-visible strings, but this neatly wraps up help strings at least.

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
help=softwrap(
"""
Config schema is as follows:

Copy link
Member Author

Choose a reason for hiding this comment

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

schema got tabbed

Copy link
Member

@kaos kaos Apr 15, 2022

Choose a reason for hiding this comment

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

You don't need the triple backticks on blocks indented 4 spaces. Markdown will render those as code blocks any way, and leaving them out gives less noise for the CLI help output ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

If we're going to make a stand on that (and maybe we should?) We should do it project-wide.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure which style we should go with, but agree that it makes sense to be consistent. I think the part I care about is indentation because it makes things more skimmable.

Copy link
Member

Choose a reason for hiding this comment

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

Agreed. And I think less noise helps with skimmability, and if we can get rid of ``` then that's less noise too ;)

@thejcannon thejcannon merged commit 28aa715 into pantsbuild:main Apr 15, 2022
@thejcannon thejcannon deleted the softwrap-more branch April 15, 2022 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants