mirror of
https://github.com/curl/curl.git
synced 2026-06-04 19:24:19 +03:00
cmdline-opts: shorter help texts
In an effort to increase the readability of the "--help all" output on narrow (80 column) terminals. Co-authored-by: Jay Satiro Closes #13169
This commit is contained in:
parent
647e86a3ef
commit
fe9f68fa61
70 changed files with 215 additions and 170 deletions
|
|
@ -32,18 +32,18 @@ curl important --help
|
|||
</errorcode>
|
||||
<stdout mode="text">
|
||||
Usage: curl [options...] <url>
|
||||
-d, --data <data> HTTP POST data
|
||||
-f, --fail Fail fast with no output 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
|
||||
-d, --data <data> HTTP POST data
|
||||
-f, --fail Fail fast with no output on HTTP errors
|
||||
-h, --help <category> Get help for commands
|
||||
-i, --include Include response headers in output
|
||||
-o, --output <file> Write to file instead of stdout
|
||||
-O, --remote-name Write output to file named as 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.
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ curl file category --help
|
|||
<stdout mode="text">
|
||||
Usage: curl [options...] <url>
|
||||
file: FILE protocol options
|
||||
--create-file-mode <mode> File mode for created files
|
||||
-I, --head Show document info only
|
||||
-r, --range <range> Retrieve only the bytes within RANGE
|
||||
--create-file-mode <mode> File mode for created files
|
||||
-I, --head Show document info only
|
||||
-r, --range <range> Retrieve only the bytes within RANGE
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ curl file category --help with lower/upper mix
|
|||
<stdout mode="text">
|
||||
Usage: curl [options...] <url>
|
||||
file: FILE protocol options
|
||||
--create-file-mode <mode> File mode for created files
|
||||
-I, --head Show document info only
|
||||
-r, --range <range> Retrieve only the bytes within RANGE
|
||||
--create-file-mode <mode> File mode for created files
|
||||
-I, --head Show document info only
|
||||
-r, --range <range> Retrieve only the bytes within RANGE
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue