-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
98 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Copyright | ||
# | ||
# Copyright (C) 2018-2023 Al Danial <[email protected]>. | ||
# Copyright (C) 2018-2024 Al Danial <[email protected]>. | ||
# Copyright (C) 2010-2017 Jari Aalto <[email protected]> | ||
# | ||
# License | ||
|
@@ -403,6 +403,14 @@ See also B<--follow-links>. | |
|
||
Count lines streamed via I<STDIN> as if they came from a file named FILE. | ||
|
||
=item B<--strip-code=EXT> | ||
|
||
For each file processed, write to the current directory a version of | ||
the file which has blank and code lines removed. | ||
The name of each stripped file is the original file name with | ||
C<.EXT> appended to it. It is written to the current directory unless | ||
B<--original-dir> is on. | ||
|
||
=item B<--strip-comments=EXT> | ||
|
||
For each file processed, write to the current directory a version of | ||
|
@@ -724,6 +732,21 @@ the default ASCII (B<E> = 'UTF-7'). Examples: 'UTF-16', | |
printed with | ||
perl -MEncode -e 'print join("\n", Encode->encodings(":all")), "\n"' | ||
|
||
=item B<--fmt=N> | ||
|
||
Alternate text output format where B<N> is a number | ||
from 1 to 5, or -1 to -5. 'total lines' means the | ||
sum of code, comment, and blank lines. Negative | ||
values are the same as the positive values but retain, | ||
instead of deleting, the intermediate JSON file that | ||
is written. The JSON file name is randomly generated | ||
unless --out/--report-file is given. The formats are: | ||
1: by language (same as cloc default output) | ||
2: by language with an extra column for total lines | ||
3: by file with language | ||
4: by file with a total lines column | ||
5: by file with language and a total lines column | ||
|
||
=item B<--hide-rate> | ||
|
||
Do not show line and file processing rates in the output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters