diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-15 23:44:58 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-16 10:42:51 +0100 |
commit | 41b1f649bf63e3663fcf3d4a678fef37688e32b7 (patch) | |
tree | 4fe54a49307d30025a67a5c83807d857f4bcbeba /docs/cmdline-opts/fail-early.d | |
parent | 81e61cda396da7eefb15dcf20b9e8be7ada37283 (diff) |
cmdline-docs: more options converted over
Diffstat (limited to 'docs/cmdline-opts/fail-early.d')
-rw-r--r-- | docs/cmdline-opts/fail-early.d | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/cmdline-opts/fail-early.d b/docs/cmdline-opts/fail-early.d new file mode 100644 index 000000000..4489b4fc4 --- /dev/null +++ b/docs/cmdline-opts/fail-early.d @@ -0,0 +1,18 @@ +Long: fail-early +Help: Fail on first transfer error, do not continue +Added: 7.52.0 +--- +Fail and exit on first detected error. + +When curl is used to do multiple transfers on the command line, it will +attempt to operate on each given URL, one by one. By default, it will ignore +errors if there are more URLs given and the last URL's success will determine +the error code curl returns. So early failures will be "hidden" by subsequent +successful transfers. + +Using this option, curl will instead return an error on the first transfers +that fails, independent on the amount of more URLs that are given on the +command line. This way, no transfer failures go undetected by scripts and +similar. + +This option will apply for all given URLs even if you use --next. |