Open ericbn opened 3 weeks ago
That's definitely one for after the clap
integration, if that ever happens.
How do you suggest we check if the git feature is enabled? Maybe by calling eza --git /dev/null
?
Example of a shell script:
if eza --git /dev/null &>/dev/null; then
alias ll='eza -l --git'
else
alias ll='eza -l'
fi
How about don't fail, just ignore the option?
Currently how would we test if an eza binary was built with
-git
(git feature disabled)?I see this fails as expected:
But not these:
(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
?