]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_getparam: bsearch cmdline options
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jan 2024 16:00:05 +0000 (17:00 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jan 2024 21:38:22 +0000 (22:38 +0100)
commit07dd60c05b5f6b00ff7cc0d65c6b46cb1a6938a2
tree3bf37ea5ac877a44626887bf5413e21ce3b288d7
parent57cc70e559aa065426021e22e2af8166af6084f6
tool_getparam: bsearch cmdline options

- the option names are now alpha sorted and lookup is a lot faster

- use case sensitive matching. It was previously case insensitive, but that
  was not documented nor tested.

- remove "partial match" feature. It was not documented, not tested and
  was always fragile as existing use could break when we add a new
  option

- lookup short options via a table

Closes #12631
src/tool_getparam.c
tests/data/test285
tests/data/test498
tests/test1139.pl