cloc icon indicating copy to clipboard operation
cloc copied to clipboard

cloc --help not working

Open al-martyn1 opened this issue 1 year ago • 2 comments

Describe the bug While typing cloc --help it doesn't show the help, it starts hanging. It seems like cloc waiting for input from stdin. First I found this behavior on cloc 1.84, and I upgrade clock to actual 2.02 version, but begavior is the same. To get the help it needed ty type something wrong after cloc --help, like next:

cloc --help aaa

cloc; OS; OS version

  • cloc: 2.02
  • OS: Windows
  • OS version: 10

To Reproduce Type

cloc --help

in command prompt

Expected result Expected that clocl displays it's CLI help page

al-martyn1 avatar Oct 04 '24 08:10 al-martyn1

Before cloc shows the help output it tries to read the optional configuration file which on Windows is under the APPDATA environment variable. Possibly it is getting hung up there. Try running with verbose level 3 to see more information about what's happending: cloc -v 3 --help

AlDanial avatar Oct 06 '24 20:10 AlDanial

Actually, before that it does a temp install of the Algorithm::Diff module. Another possibility is cloc can't write to the scratch directory. Try explicitly defining a temporary write location with cloc --sdir C:\TEMP --help (assuming you have write permission to C:\TEMP). I need to update cloc to do temporary module installs after parsing command line arguments.

AlDanial avatar Oct 06 '24 21:10 AlDanial

Why does the cloc provide different output on a directory that has not changed at all since May 2024? I used versions 1.72, 1.90, 1.94, on the same directory, and each version produces a different output, with different languages listed.

MitzDS21 avatar Dec 12 '24 19:12 MitzDS21

The directory didn't change but cloc did: bug fixes, support for additional languages, parsing improvements.

AlDanial avatar Dec 13 '24 04:12 AlDanial