Skip to content

Extract pattern matching functionality is bad #104

@Morilli

Description

@Morilli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions