CDTB
CDTB copied to clipboard
Extract pattern matching functionality is bad
The description for the --pattern option in wad extract reads: extract only files matching pattern with shell-like wildcards.
One problem is that while it's possible to chain multiple commands, like -p "*.bin" -p "*.dds", this is not clear from reading the command description alone.
Furthermore, it is not possible to filter only extensionless files. Perhaps the extracted paths should also be sanitized before being passed to the pattern matching function to allow filtering by "guessed" extensions, like .cdtb.bin.
Maybe just making the pattern a regex would also solve all of this, as you can match basically everything with regex alone.