eza icon indicating copy to clipboard operation
eza copied to clipboard

feat: Make eza fail when built with -git and the --git parameter is given in the command line

Open ericbn opened this issue 8 months ago • 3 comments

Currently how would we test if an eza binary was built with -git (git feature disabled)?

I see this fails as expected:

❯ eza --git
eza: Options --git and --git-ignore can't be used because `git` feature was disabled in this build of exa

But not these:

❯ eza --git --help
...
❯ eza --git --version
...

(Although all the above always fail when an unknown parameter is given, like --gix)

Can we make eza always fail when the --git parameter is given and it was build with -git?

ericbn avatar Jun 10 '24 15:06 ericbn