docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
---
|
2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: fail-early
|
|
|
|
Help: Fail on first transfer error, do not continue
|
|
|
|
Added: 7.52.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: curl
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2023-02-21 23:42:26 +08:00
|
|
|
Scope: global
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
See-also:
|
|
|
|
- fail
|
|
|
|
- fail-with-body
|
|
|
|
Example:
|
|
|
|
- --fail-early $URL https://two.example
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
docs/cmdline: change to .md for cmdline docs
- switch all invidual files documenting command line options into .md,
as the documentation is now markdown-looking.
- made the parser treat 4-space indents as quotes
- switch to building the curl.1 manpage using the "mainpage.idx" file,
which lists the files to include to generate it, instead of using the
previous page-footer/headers. Also, those files are now also .md
ones, using the same format. I gave them underscore prefixes to make
them sort separately:
_NAME.md, _SYNOPSIS.md, _DESCRIPTION.md, _URL.md, _GLOBBING.md,
_VARIABLES.md, _OUTPUT.md, _PROTOCOLS.md, _PROGRESS.md, _VERSION.md,
_OPTIONS.md, _FILES.md, _ENVIRONMENT.md, _PROXYPREFIX.md,
_EXITCODES.md, _BUGS.md, _AUTHORS.md, _WWW.md, _SEEALSO.md
- updated test cases accordingly
Closes #12751
2024-01-21 06:18:43 +08:00
|
|
|
|
|
|
|
# `--fail-early`
|
|
|
|
|
2017-04-01 03:59:07 +08:00
|
|
|
Fail and exit on the first detected transfer error.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
2023-09-08 20:32:29 +08:00
|
|
|
When curl is used to do multiple transfers on the command line, it attempts to
|
|
|
|
operate on each given URL, one by one. By default, it ignores errors if there
|
|
|
|
are more URLs given and the last URL's success determines the error code curl
|
|
|
|
returns. So early failures are "hidden" by subsequent successful transfers.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
2023-09-08 20:32:29 +08:00
|
|
|
Using this option, curl instead returns an error on the first transfer that
|
|
|
|
fails, independent of the amount of URLs that are given on the command
|
2017-04-01 10:36:46 +08:00
|
|
|
line. This way, no transfer failures go undetected by scripts and similar.
|
2016-11-16 06:44:58 +08:00
|
|
|
|
2017-04-01 03:59:07 +08:00
|
|
|
This option does not imply --fail, which causes transfers to fail due to the
|
|
|
|
server's HTTP status code. You can combine the two options, however note --fail
|
|
|
|
is not global and is therefore contained by --next.
|