hlint icon indicating copy to clipboard operation
hlint copied to clipboard

`hlint --git` prints help text when no Haskell files present

Open martin-drhu-da opened this issue 7 years ago • 2 comments

When you run hlint --git in a directory which doesn't contain any Haskell files, the help text is printed.

martin-drhu-da avatar Sep 24 '18 08:09 martin-drhu-da

Doh, I think that's a case of the command line interpretation happening at the wrong level.

ndmitchell avatar Sep 24 '18 09:09 ndmitchell

I believe this is no longer the case at least with version 3.6.1:

❯ hlint --git
Schwerwiegend: Kein Git-Repository (oder irgendeines der Elternverzeichnisse): .git
hlint: readCreateProcess: /home/turion/.nix-profile/bin/git "ls-files" "--cached" "--others" "--exclude-standard" "*.hs" "*.lhs" (exit 128): failed

turion avatar May 08 '24 14:05 turion