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
USAGE statements should be formatted by default #3702
Comments
One of Documentable's dependencies is failing to install (perl6/Pod-To-Cached#22) - Can you include the actual output? |
|
Some notes and questions from my perspective:
|
Prior art:
|
That is a separate issue: source code formatting isn’t the same as formatting of diagnostics emitted to the users. |
Linus Torvalds had some recently commentary (that I mostly agree with) about 80 char line limits. https://lkml.org/lkml/2020/5/29/1038 |
Linus is known for his absolute control of his products--very autocratic and opinionated. |
@tbrowder wrote:
@coke wrote:
The way to produce output that looks good to both of you is to check the width of the user's terminal and wrap text based on that width. Unless someone objects, I'll prepare a PR adding that behavior. |
The Problem
Users at the command line interface (CLI) expect help to be usable. Currently the output from Raku programs taking advantage of MAIN and USAGE splatter across the terminal in a clutter of long lines wrapped according to the settings of the terminal.
Expected Behavior
As a minimum, lines should be neatly formatted with lines wrapped at a conventional value such as 70 or 72 characters. Ideally, a long line that is so wrapped would have succeeding lines indented to indicate such wrapping.
Actual Behavior
As an example of current behavior take the following steps in a terminal window:
The text was updated successfully, but these errors were encountered: