m_option: reintroduce -del to string list and keyvalue list

b56e63e2a9 removed this because it was
deprecated and not clearly useful. This commit adds this operation back
to string lists and keyvalue lists, but with one important change. It
operates via the actual values and not indexes. So you can use
--foo-del=bar,bar2 to remove bar and bar2 from foo. The difference from
using -remove is that this is subject to escaping rules and has the same
caveats as -add. Note that -del wasn't added back to the object settings
list because you can already remove multiple items with -remove from it.
This commit is contained in:
Dudemanguy
2025-01-25 19:33:08 -06:00
parent 7456816217
commit d2c409c56b
3 changed files with 105 additions and 58 deletions

View File

@@ -1 +1,2 @@
undeprecate list option suffixes that work with multiple items
add `-del` to string list and keyvalue list options