Skip to content

print_category: print help descriptions aligned#7792

Closed
bagder wants to merge 1 commit intomasterfrom
bagder/help-aligned
Closed

print_category: print help descriptions aligned#7792
bagder wants to merge 1 commit intomasterfrom
bagder/help-aligned

Conversation

@bagder
Copy link
Member

@bagder bagder commented Sep 29, 2021

Adjust the description position to make an aligned column when doing
help listings, which is more pleasing to the eye.

Suggested-by: Gisle Vanem

@bagder
Copy link
Member Author

bagder commented Sep 29, 2021

before

$ curl -h
Usage: curl [options...] <url>
 -d, --data <data>   HTTP POST data
 -f, --fail          Fail silently (no output at all) on HTTP errors
 -h, --help <category> Get help for commands
 -i, --include       Include protocol response headers in the output
 -o, --output <file> Write to file instead of stdout
 -O, --remote-name   Write output to a file named as the remote file
 -s, --silent        Silent mode
 -T, --upload-file <file> Transfer local FILE to destination
 -u, --user <user:password> Server user and password
 -A, --user-agent <name> Send User-Agent <name> to server
 -v, --verbose       Make the operation more talkative
 -V, --version       Show version number and quit

This is not the full help, this menu is stripped into categories.
Use "--help category" to get an overview of all categories.
For all options use the manual or "--help all".

After

$ curl -h
Usage: curl [options...] <url>
 -d, --data <data>          HTTP POST data
 -f, --fail                 Fail silently (no output at all) on HTTP errors
 -h, --help <category>      Get help for commands
 -i, --include              Include protocol response headers in the output
 -o, --output <file>        Write to file instead of stdout
 -O, --remote-name          Write output to a file named as the remote file
 -s, --silent               Silent mode
 -T, --upload-file <file>   Transfer local FILE to destination
 -u, --user <user:password> Server user and password
 -A, --user-agent <name>    Send User-Agent <name> to server
 -v, --verbose              Make the operation more talkative
 -V, --version              Show version number and quit

This is not the full help, this menu is stripped into categories.
Use "--help category" to get an overview of all categories.
For all options use the manual or "--help all".

@bagder bagder force-pushed the bagder/help-aligned branch from 6a60fd3 to e003604 Compare September 30, 2021 07:05
Adjust the description position to make an aligned column when doing
help listings, which is more pleasing to the eye.

Suggested-by: Gisle Vanem
Closes #7792
@bagder bagder force-pushed the bagder/help-aligned branch from e003604 to f111489 Compare September 30, 2021 15:55
@bagder bagder closed this in 24ffdc8 Oct 1, 2021
@bagder bagder deleted the bagder/help-aligned branch October 1, 2021 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant

Comments