Skip to content
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 cache --help does return help on the cache flags? #173

Closed
sanga opened this issue Jun 22, 2018 · 3 comments
Closed

bat cache --help does return help on the cache flags? #173

sanga opened this issue Jun 22, 2018 · 3 comments

Comments

@sanga
Copy link
Contributor

sanga commented Jun 22, 2018

bat --help tells you that bat has a subcommand "cache" however "bat cache --help" doesn't give you any help on the flags available for that subcommand. Is this not how this works in clap? So basically I had to look at the source to see how it works...

@sharkdp
Copy link
Owner

sharkdp commented Jun 23, 2018

I can not reproduce this. Can you please make sure (which bat, bat --version) that you are using the latest version of bat? Maybe there is another, older version of bat on your machine that takes precedence?

@sanga
Copy link
Contributor Author

sanga commented Jun 23, 2018

Yup. This (and the other one) are on me. Apologies for the noise. Note to self: don't file bugs after midnight. So the problem was that I'd aliased bat to "bat --style=plain", which of course doesn't work with the subcommand.

@sanga sanga closed this as completed Jun 23, 2018
@sharkdp
Copy link
Owner

sharkdp commented Jul 2, 2018

Thank you for the feedback.

That behavior is somewhat unfortunate. I definitely see how that could happen to other users as well. I guess we should push forward environment variables like BAT_THEME and BAT_STYLE to avoid the need for bat='bat ...' aliases (which I am using as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants