Skip to content

tool_getparam: refactored, simplified #17448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

bagder
Copy link
Member

@bagder bagder commented May 25, 2025

  • 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

@testclutch

This comment was marked as outdated.

- 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
@bagder bagder force-pushed the bagder/getparam-cleare branch from d70842f to 5323ab5 Compare May 26, 2025 06:43
@bagder bagder changed the title curl: getparameter fixups and simplications tool_getparam: refactored, simplified May 26, 2025
@bagder bagder marked this pull request as ready for review May 26, 2025 06:46
@bagder
Copy link
Member Author

bagder commented May 26, 2025

I will merge this after the 8.14.0 release, since that is now closer than 48 hours away.

@bagder bagder closed this in 698491f May 28, 2025
@bagder bagder deleted the bagder/getparam-cleare branch May 28, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants