curl/src
Daniel Stenberg 9f9fecc724
tool_getparam: add support for --longopt=value
If the long option name ends with an equals sign (`=`), the argument is
the text following on its right side.

This makes the command line parser accept this common style in addition
to the existing way to accept option arguments more similar to how other
command line tools do.

Example: `curl --user-agent=curl-2000 https://example.com/`

Change a few existing tests to use this syntax: 206, 1333, 1335, 1442

Closes #17789
2025-07-27 18:29:01 +02:00
..
.checksrc checksrc: reduce exceptions, apply again to curlx 2025-06-27 17:33:35 +02:00
.gitignore rtmp: remove no longer used proto member 2025-05-08 10:24:19 +02:00
CMakeLists.txt cmake: make runtests targets build the curl tool 2025-07-19 22:37:17 +02:00
config2setopts.c tls: make default TLS version be minimum 1.2 2025-07-27 18:23:04 +02:00
config2setopts.h curl: remove the global argument from many functions 2025-07-10 23:28:31 +02:00
curl.rc windows: drop code and curl manifest targeting W2K and older 2025-02-24 21:00:31 +01:00
curlinfo.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
Makefile.am autotools: drop redundant Makefile.inc from EXTRA_DIST in src 2025-06-26 10:20:43 +02:00
Makefile.inc build: fix libcurltool with cmake and tunits, related tidy-ups 2025-06-25 09:57:06 +02:00
mk-file-embed.pl tidy-up: whitespace (more in Perl) 2025-07-12 08:59:44 +02:00
mkhelp.pl tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
slist_wc.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
slist_wc.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
terminal.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
terminal.h curl: make warnings and other messages aware of terminal width 2024-05-28 23:12:32 +02:00
tool_bname.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_bname.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_dbg.c curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_cb_dbg.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_hdr.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_cb_hdr.h tool: support --show-headers AND --remote-header-name 2024-10-02 08:04:33 +02:00
tool_cb_prg.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_cb_prg.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_cb_rea.c curl: tool_read_cb fix of segfault 2025-07-21 19:11:37 +02:00
tool_cb_rea.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_see.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_cb_see.h tool: move tool_ftruncate64 to tool_util.c 2024-04-25 09:20:38 +02:00
tool_cb_soc.c curl: (on linux) add MPTCP support 2024-06-07 10:54:19 +02:00
tool_cb_soc.h curl: (on linux) add MPTCP support 2024-06-07 10:54:19 +02:00
tool_cb_wrt.c curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_cb_wrt.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cfgable.c curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_cfgable.h tls: make default TLS version be minimum 1.2 2025-07-27 18:23:04 +02:00
tool_dirhie.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_dirhie.h tool: use errorf() for error output 2023-06-01 08:19:11 +02:00
tool_doswin.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_doswin.h curl: implement non-blocking STDIN read on Windows 2025-06-21 11:04:29 +02:00
tool_easysrc.c curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_easysrc.h curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_filetime.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_filetime.h src: remove final uses of Curl_ symbol prefixes in tool code 2025-03-12 14:37:08 +01:00
tool_findfile.c build: stop checking for sys/stat.h 2025-06-24 09:44:28 +02:00
tool_findfile.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
tool_formparse.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_formparse.h curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_getparam.c tool_getparam: add support for --longopt=value 2025-07-27 18:29:01 +02:00
tool_getparam.h curl: remove the global argument from many functions 2025-07-10 23:28:31 +02:00
tool_getpass.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_getpass.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
tool_help.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_help.h curl: fix memory leak when -h is used in config file 2025-05-10 11:16:07 +02:00
tool_helpers.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_helpers.h src: tidy up types, add necessary casts 2024-05-17 12:32:04 +02:00
tool_hugehelp.h build: drop tool_hugehelp.c.cvs, tidy up macros, drop buildconf.bat 2025-01-26 14:22:49 +01:00
tool_ipfs.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_ipfs.h ipfs: add options to disable 2024-09-21 12:08:32 +02:00
tool_libinfo.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_libinfo.h tool_getparam: fail --hostpubsha256 if libssh2 is not used 2025-01-28 10:30:40 +01:00
tool_listhelp.c tidy-up: update deprecated status of some symbols/options 2025-06-15 01:38:26 +02:00
tool_main.c curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_main.h tests/server: make the signal handler signal-safe 2025-03-28 12:02:38 +01:00
tool_msgs.c curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_msgs.h curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_operate.c tool_operate: avoid superfluous strdup'ing output 2025-07-18 00:32:13 +02:00
tool_operate.h curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_operhlp.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_operhlp.h tool_cb_wrt: use "curl_response" if no file name in URL 2024-09-17 13:39:51 +02:00
tool_paramhlp.c tls: make default TLS version be minimum 1.2 2025-07-27 18:23:04 +02:00
tool_paramhlp.h tls: make default TLS version be minimum 1.2 2025-07-27 18:23:04 +02:00
tool_parsecfg.c curl: remove the global argument from many functions 2025-07-10 23:28:31 +02:00
tool_parsecfg.h curl: unify pointer names to global config 2025-07-10 18:23:17 +02:00
tool_progress.c build: drop explicit curlx from hdr paths, refer headers with curlx/ prefix 2025-06-23 17:02:43 +02:00
tool_progress.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_sdecls.h curl: change the struct getout flags field into bitfields 2025-05-24 13:41:32 +02:00
tool_setopt.c tls: make default TLS version be minimum 1.2 2025-07-27 18:23:04 +02:00
tool_setopt.h tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_setup.h tidy-up: whitespace 2025-07-11 13:32:54 +02:00
tool_ssls.c curl: remove the global argument from many functions 2025-07-10 23:28:31 +02:00
tool_ssls.h curl: remove the global argument from many functions 2025-07-10 23:28:31 +02:00
tool_stderr.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_stderr.h src: avoid strdup on platforms not doing UTF8 conversions 2025-03-05 09:19:09 +01:00
tool_strdup.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_strdup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_urlglob.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_urlglob.h src: replace strto[u][ld] with curlx_str_ parsers 2025-03-10 08:09:41 +01:00
tool_util.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_util.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_version.h config: rename the OS define to CURL_OS to reduce collision risk 2024-10-30 14:59:54 +01:00
tool_vms.c tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_vms.h tidy-up: more whitespace/indent, comments 2025-07-25 11:47:51 +02:00
tool_writeout.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_writeout.h curl: add write-out variable 'tls_earlydata' 2025-02-22 10:02:39 +01:00
tool_writeout_json.c build: drop explicit curlx from hdr paths, refer headers with curlx/ prefix 2025-06-23 17:02:43 +02:00
tool_writeout_json.h curlx: move into to curlx/ 2025-05-07 11:01:15 +02:00
tool_xattr.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
tool_xattr.h tests: always make bundles, adapt build and tests 2025-06-14 21:08:23 +02:00
var.c tidy-up: replace <memdebug.h> with "memdebug.h" (src, units) 2025-06-24 09:44:28 +02:00
var.h build: drop explicit curlx from hdr paths, refer headers with curlx/ prefix 2025-06-23 17:02:43 +02:00