1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 18:04:55 +02:00
tldr/pages/common/loc.md
2018-10-24 20:04:34 +01:00

19 lines
393 B
Markdown

# loc
> Tool written in Rust that counts lines of code.
- Print lines of code in the current directory:
`loc`
- Print lines of code in the target directory:
`loc {{path/to/directory}}`
- Print lines of code with stats for individual files:
`loc --files`
- Print lines of code without .gitignore (etc.) files (e.g. two -u flags will additionally count hidden files and dirs):
`loc -u`