1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 09:05:04 -05:00
curl/docs/cmdline-opts
Jay Satiro 65ca229461 tool_writeout: refactor write-out and write-out json
- Deduplicate the logic used by write-out and write-out json.

Rather than have separate writeLong, writeString, etc, logic for
each of write-out and write-out json instead have respective shared
functions that can output either format and a 'use_json' parameter to
indicate whether it is json that is output.

This will make it easier to maintain. Rather than have to go through
two sets of logic now we only have to go through one.

- Support write-out %{errormsg} and %{exitcode} in json.

- Clarify in the doc that %{exitcode} is the exit code of the transfer.

Prior to this change it just said "The numerical exitcode" which
implies it's the exit code of the tool, and it's not necessarily that.

Closes https://github.com/curl/curl/pull/6544
2021-02-09 02:48:27 -05:00
..
abstract-unix-socket.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
alt-svc.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
anyauth.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
append.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
aws-sigv4.d http: improve AWS HTTP v4 Signature auth 2021-01-30 23:48:22 +01:00
basic.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
cacert.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
capath.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
cert-status.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
cert-type.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
cert.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ciphers.d curl.se: new home 2020-11-04 23:59:47 +01:00
CMakeLists.txt curl.se: new home 2020-11-04 23:59:47 +01:00
compressed-ssh.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
compressed.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
config.d curl.se: new home 2020-11-04 23:59:47 +01:00
connect-timeout.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
connect-to.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
continue-at.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
cookie-jar.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
cookie.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
create-dirs.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
create-file-mode.d curl: add --create-file-mode [mode] 2020-12-21 10:52:41 +01:00
crlf.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
crlfile.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
curves.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
data-ascii.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
data-binary.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
data-raw.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
data-urlencode.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
data.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
delegation.d --help: move two options from the misc category 2020-10-03 22:59:50 +02:00
digest.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
disable-eprt.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
disable-epsv.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
disable.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
disallow-username-in-url.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
dns-interface.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
dns-ipv4-addr.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
dns-ipv6-addr.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
dns-servers.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
doh-url.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
dump-header.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
egd-file.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
engine.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
etag-compare.d docs: fix typos and markup in ETag manpage sections 2020-12-03 13:25:42 +01:00
etag-save.d docs: fix typos and markup in ETag manpage sections 2020-12-03 13:25:42 +01:00
expect100-timeout.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
fail-early.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
fail.d docs: remove redundant "better" in --fail help 2020-12-29 17:08:41 +01:00
false-start.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
form-string.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
form.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-account.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-alternative-to-user.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-create-dirs.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-method.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-pasv.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-port.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-pret.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-skip-pasv-ip.d ftp: CURLOPT_FTP_SKIP_PASV_IP by default 2020-12-07 08:38:05 +01:00
ftp-ssl-ccc-mode.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-ssl-ccc.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ftp-ssl-control.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
gen.pl gen.pl: fix perl syntax 2021-01-12 08:12:41 +01:00
get.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
globoff.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
happy-eyeballs-timeout-ms.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
haproxy-protocol.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
head.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
header.d docs: Fix various typos in documentation 2020-11-05 09:36:24 +01:00
help.d docs: fix wrong documentation in help.d 2021-01-12 00:08:55 +01:00
hostpubmd5.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
hsts.d hsts: add support for Strict-Transport-Security 2020-11-03 16:08:42 +01:00
http0.9.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
http1.0.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
http1.1.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
http2-prior-knowledge.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
http2.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
http3.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ignore-content-length.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
include.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
insecure.d curl.se: new home 2020-11-04 23:59:47 +01:00
interface.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ipv4.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ipv6.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
junk-session-cookies.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
keepalive-time.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
key-type.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
key.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
krb.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
libcurl.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
limit-rate.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
list-only.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
local-port.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
location-trusted.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
location.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
login-options.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
mail-auth.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
mail-from.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
mail-rcpt-allowfails.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
mail-rcpt.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
Makefile.am curl.se: new home 2020-11-04 23:59:47 +01:00
Makefile.inc docs: add AWS HTTP v4 Signature 2020-12-21 16:28:03 +01:00
MANPAGE.md MANPAGE: clarify the dash situation in meta data 2017-03-08 09:20:36 +01:00
manual.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
max-filesize.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
max-redirs.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
max-time.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
metalink.d docs: fix FILE example url in --metalink documentation 2021-02-05 13:34:12 +01:00
negotiate.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
netrc-file.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
netrc-optional.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
netrc.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
next.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
no-alpn.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
no-buffer.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
no-keepalive.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
no-npn.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
no-progress-meter.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
no-sessionid.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
noproxy.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ntlm-wb.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ntlm.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
oauth2-bearer.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
output-dir.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
output.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
page-footer curl.se: new home 2020-11-04 23:59:47 +01:00
page-header curl.1: fix typo microsft -> microsoft 2020-12-27 11:07:46 +01:00
parallel-immediate.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
parallel-max.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
parallel.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
pass.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
path-as-is.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
pinnedpubkey.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
post301.d language: s/behaviour/behavior/g 2021-01-02 23:35:59 +01:00
post302.d language: s/behaviour/behavior/g 2021-01-02 23:35:59 +01:00
post303.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
preproxy.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
progress-bar.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proto-default.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proto-redir.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proto.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy1.0.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-anyauth.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-basic.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-cacert.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-capath.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-cert-type.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-cert.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-ciphers.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-crlfile.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-digest.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-header.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-insecure.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-key-type.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-key.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-negotiate.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-ntlm.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-pass.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-pinnedpubkey.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-service-name.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-ssl-allow-beast.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-tls13-ciphers.d curl.se: new home 2020-11-04 23:59:47 +01:00
proxy-tlsauthtype.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-tlspassword.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-tlsuser.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-tlsv1.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy-user.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxy.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
proxytunnel.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
pubkey.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
quote.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
random-file.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
range.d range.d: fix typo 2020-10-26 17:18:37 -04:00
raw.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
referer.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
remote-header-name.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
remote-name-all.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
remote-name.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
remote-time.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
request-target.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
request.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
resolve.d dns: extend CURLOPT_RESOLVE syntax for adding non-permanent entries 2020-12-29 17:49:36 +01:00
retry-all-errors.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
retry-connrefused.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
retry-delay.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
retry-max-time.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
retry.d cmdline-opts/retry.d: mention response code 429 as well 2021-01-02 11:51:55 +01:00
sasl-authzid.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
sasl-ir.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
service-name.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
show-error.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
silent.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks4.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks4a.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks5-basic.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks5-gssapi-nec.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks5-gssapi-service.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks5-gssapi.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks5-hostname.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
socks5.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
speed-limit.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
speed-time.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ssl-allow-beast.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ssl-no-revoke.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ssl-reqd.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ssl-revoke-best-effort.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
ssl.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
sslv2.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
sslv3.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
stderr.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
styled-output.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
suppress-connect-headers.d --help: move two options from the misc category 2020-10-03 22:59:50 +02:00
tcp-fastopen.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tcp-nodelay.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
telnet-option.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tftp-blksize.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tftp-no-options.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
time-cond.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tls13-ciphers.d curl.se: new home 2020-11-04 23:59:47 +01:00
tls-max.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsauthtype.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlspassword.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsuser.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsv1.0.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsv1.1.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsv1.2.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsv1.3.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tlsv1.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
tr-encoding.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
trace-ascii.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
trace-time.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
trace.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
unix-socket.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
upload-file.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
url.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
use-ascii.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
user-agent.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
user.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
verbose.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00
version.d hsts: add support for Strict-Transport-Security 2020-11-03 16:08:42 +01:00
write-out.d tool_writeout: refactor write-out and write-out json 2021-02-09 02:48:27 -05:00
xattr.d docs: add categories to all cmdline opts 2020-09-04 15:38:14 +02:00