diff options
author | Emil Engler <me@emilengler.com> | 2020-07-14 10:32:22 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-09-04 15:38:22 +0200 |
commit | a86cc7e2ab96d3d2bda380c9a1a9bb3c80bb422f (patch) | |
tree | 670433d240d91d4ca3edf5a52adc336f045ce605 /tests/data/test1461 | |
parent | aa8777f63febca6a13f6b86e141a832232560037 (diff) | |
download | curl-a86cc7e2ab96d3d2bda380c9a1a9bb3c80bb422f.tar.gz |
tests: Add tests for new --help
This commit is a part of "--help me if you can"
Closes #5680
Diffstat (limited to 'tests/data/test1461')
-rw-r--r-- | tests/data/test1461 | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/data/test1461 b/tests/data/test1461 new file mode 100644 index 000000000..4b8f6c410 --- /dev/null +++ b/tests/data/test1461 @@ -0,0 +1,53 @@ +<testcase> +<info> +<keywords> +--help +</keywords> +</info> + +# +# Server-side +<reply> +</reply> + +# +# Client-side +<client> +<server> +none +</server> + <name> +curl important --help + </name> + <command> +--help +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<errorcode> +0 +</errorcode> +<stdout mode="text"> +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". +</stdout> +</verify> +</testcase> |