summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2021-02-27 18:08:53 -0500
committerJay Satiro <raysatiro@yahoo.com>2021-02-28 13:41:15 -0500
commit5743d66b9110be800ffc8f0ef8991d070f56bad0 (patch)
tree3c0684b5c8368308c72d26b0bea43120f7b487c9
parent40f3c18e6af7c6e06328062645bda8fa0302d715 (diff)
downloadcurl-5743d66b9110be800ffc8f0ef8991d070f56bad0.tar.gz
tool_help: Increase space between option and description
- Increase the minimum number of spaces between the option and the description from 1 to 2. Before: ~~~ -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 -w, --write-out <format> Use output FORMAT after completion --xattr Store metadata in extended file attributes ~~~ After: ~~~ -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 -w, --write-out <format> Use output FORMAT after completion --xattr Store metadata in extended file attributes ~~~ Closes https://github.com/curl/curl/pull/6674
-rw-r--r--src/tool_help.c2
-rw-r--r--tests/data/test146110
-rw-r--r--tests/data/test14634
-rw-r--r--tests/data/test14644
4 files changed, 10 insertions, 10 deletions
diff --git a/src/tool_help.c b/src/tool_help.c
index f3046b7df..0d1e4cd35 100644
--- a/src/tool_help.c
+++ b/src/tool_help.c
@@ -889,7 +889,7 @@ static void print_category(curlhelp_t category)
unsigned int i;
for(i = 0; helptext[i].opt; ++i)
if(helptext[i].categories & category) {
- printf(" %-19s %s\n", helptext[i].opt, helptext[i].desc);
+ printf(" %-18s %s\n", helptext[i].opt, helptext[i].desc);
}
}
diff --git a/tests/data/test1461 b/tests/data/test1461
index 4b8f6c410..301dc144e 100644
--- a/tests/data/test1461
+++ b/tests/data/test1461
@@ -34,14 +34,14 @@ curl important --help
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
+ -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, --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
+ -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
diff --git a/tests/data/test1463 b/tests/data/test1463
index 3901d7b73..9326748ed 100644
--- a/tests/data/test1463
+++ b/tests/data/test1463
@@ -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 (octal) for created files
+ --create-file-mode <mode> File mode (octal) for created files
-I, --head Show document info only
- -r, --range <range> Retrieve only the bytes within RANGE
+ -r, --range <range> Retrieve only the bytes within RANGE
</stdout>
</verify>
</testcase>
diff --git a/tests/data/test1464 b/tests/data/test1464
index 5e0b475b2..2ddacefa5 100644
--- a/tests/data/test1464
+++ b/tests/data/test1464
@@ -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 (octal) for created files
+ --create-file-mode <mode> File mode (octal) for created files
-I, --head Show document info only
- -r, --range <range> Retrieve only the bytes within RANGE
+ -r, --range <range> Retrieve only the bytes within RANGE
</stdout>
</verify>
</testcase>