]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_getparam: refactored, simplified
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 May 2025 10:24:49 +0000 (12:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 May 2025 12:25:32 +0000 (14:25 +0200)
commit698491f444947c89822c8776ab3eefe28259aedf
treef7c51923f84383d921e83129c29fd531877e971f
parent6eea7219a5eeb443f3cdd6805e5cd8c3929decb4
tool_getparam: refactored, simplified

- add dedicated option functions for bools/none/strings
- simplify clearing (some) arguments, use '*' instead of ' '
- scripts/top-complexity: remove getparameter from whitelist
- handle --help separately
- getstr and getstrn do not allow a NULL input
- improve the ;auto check, it needs to be trailing
- add toggle bit helper function
- unify an error message for bad --no- use
- introduce generic handling of deprecated options: ARG_DEPR
- handle --no- prefix on more booleans:

    --cert-status
    --doh-cert-status
    --false-start
    --mptcp
    --ssl-no-revoke
    --ssl-revoke-best-effort
    --tcp-fastopen

Closes #17448
scripts/top-complexity
src/tool_cfgable.h
src/tool_getparam.c
src/tool_getparam.h
src/tool_helpers.c
src/tool_parsecfg.c