From 7eddc00f20eb50459ad31b3ad28203974f0b3f28 Mon Sep 17 00:00:00 2001 From: bagginslin <51952061+bagginslin@users.noreply.github.com> Date: Sat, 27 Jun 2020 12:25:57 +0000 Subject: [PATCH] cloc: add --by-file example (#4129) --- pages/common/cloc.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/cloc.md b/pages/common/cloc.md index 0dd9765bd..f1f7b058c 100644 --- a/pages/common/cloc.md +++ b/pages/common/cloc.md @@ -18,3 +18,7 @@ - Ignore files that are ignored by VCS, such as files specified in .gitignore: `cloc --vcs git {{path/to/directory}}` + +- Count all the lines of code in a directory, displaying the results for each file instead of each language: + +`cloc --by-file {{path/to/directory}}`