curl: add table format for help opt#20895
Conversation
|
Analysis of PR #20895 at a4990aa5: Test 1501 failed, which has NOT been flaky recently, so there could be a real issue in this PR. Note that this test has failed in 12 different CI jobs (the link just goes to one of them). Note that this CI job has had a number of other flaky tests recently (3, to be exact) so it may be that this failure is rather a systemic issue with this job and not with this specific PR. Generated by Testclutch |
|
Adding table row separators with a one-pixel line on screen is one thing, but
I'm not sure halving the amount of information displayed in a console is a win.
I can't think of another console program that adds a line of dashes between
rows of text. Who do you expect the audience of this feature to be?
|
Really anyone. I found some studies and articles regarding styling tables for the browser. Like most niche research studies, Articles Supporting Distinguishing Table Rows
Articles Supporting Minimal BordersEdit Fixed link in |
|
I don't feel that anyone has particularly asked for this layout option, nor do I feel that it adds much in terms of usability. I would like to see more people voicing their support for this before considering a merge. |
Summary
This PR adds an argument to
-h, --helpthat will use the help categories as qualifiers to table format the output.Similar to PR 18151, but the formatted output is more of a table with bottom borders.
Since documentation seems to be a constant consideration for improvement, this PR addresses:
See curl 2025 survey[1]
Determining Format
Several articles on UX/UI conclude that using some separator for tables results in improved readability for data.
Although focused on browser tables, the same should apply as the task (reading data) is the same.
Articles Supporting Distinguishing Table Rows
Articles Supporting Minimal Borders
Output using PR
Below is what running
curl --help tablewould output: