Me: What are some good names for an option for a CLI script which means "fail with a non-zero exit code if an HTTP error occurs" ChatGPT: --fail-on-http-error -e (for "error") --stop-on-http-error --exit-on-http-error --http-fail -H (for "HTTP") Me: Are there any commands like "curl" that have an option like this? List the commands and their options ChatGPT: Yes, there are several commands like curl that have an option to fail with a non-zero exit code when an HTTP error occurs. Some examples include: curl: -f, --fail wget: --no-clobber httpie: --fail http (from httpie): --fail These commands also have --silent,--show-error, -S options which make them not output anything to stdout, these options also make them fail with a non-zero exit code if an HTTP error occurs.
https://cdn.masto.host/fedisimonwillisonnet/media_attachments/files/109/765/386/498/815/817/original/ed8de0c1de68ec89.png