-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
The issue with files named "cache" was already identified in #245 and fixed in #275. However, the clap parser doesn't require an exact match: any prefix of the subcommand "cache" will do. So if you try bat c (or "ca", "cac", "cach"), one of the following will happen:
- If there is a file named "cache", it will print that instead (the wrong file!).
- Otherwise, it will print an error message about
--build/--clearbeing required.
I think it's best to avoid subcommands and use something like --cache instead.
artem-russkikh
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working