-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bat is broken for filenames that are prefixes of "cache" #557
Comments
Which version of |
I just discovered this myself. I did ~ > bat c
error: The following required arguments were not provided:
<--build|--clear>
USAGE:
bat cache [OPTIONS] <--build|--clear>
For more information try --help
|
I still can not reproduce this:
Is |
Oh, I know where the problem is. I have a Edit: Forgot to say: thank you for reporting this! |
This also adds two regression tests, so this will hopefully not pop up again. closes #557
This also adds two regression tests, so this will hopefully not pop up again. closes #557
That makes sense, glad you could reproduce it.
…On Fri, May 10, 2019, 17:58 David Peter ***@***.***> wrote:
Oh, I know where the problem is. I have a bat config file that prevents
this from happening. I can reproduce this if I remove my
~/.config/bat/config file.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#557 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABKRMYYOHRJQATZVZJR3WVDPUWLRZANCNFSM4HKOWGQA>
.
|
This also adds two regression tests, so this will hopefully not pop up again. closes #557
Fixed in v0.11.0. |
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 trybat c
(or "ca", "cac", "cach"), one of the following will happen:--build
/--clear
being required.I think it's best to avoid subcommands and use something like
--cache
instead.The text was updated successfully, but these errors were encountered: