diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-11 08:30:39 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-11 08:35:27 +0100 |
commit | 8a964cb217b0cd84783da5ba32b18944fc43feb1 (patch) | |
tree | d6201c16d66c0b3fd1d7496ecc9d046479792f5e /src/tool_help.c | |
parent | c386a0df441538ee4fbcf6e4bdac77abe5cc3e5d (diff) | |
download | curl-8a964cb217b0cd84783da5ba32b18944fc43feb1.tar.gz |
curl: add --fail-with-body
Prevent both --fail and --fail-with-body on the same command line.
Verify with test 349, 360 and 361.
Closes #6449
Diffstat (limited to 'src/tool_help.c')
-rw-r--r-- | src/tool_help.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_help.c b/src/tool_help.c index b90c6fd05..30a03d959 100644 --- a/src/tool_help.c +++ b/src/tool_help.c @@ -268,6 +268,9 @@ static const struct helptxt helptext[] = { {" --fail-early", "Fail on first transfer error, do not continue", CURLHELP_CURL}, + {" --fail-with-body", + "Fail on HTTP errors but save the body", + CURLHELP_HTTP | CURLHELP_OUTPUT}, {" --false-start", "Enable TLS False Start", CURLHELP_TLS}, |