-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 changed file
with
11 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
# sloc | ||
A tiny Python script that finds the total lines of code in a directory tree. | ||
|
||
## Usage | ||
``` | ||
python sloc.py cpp h | ||
``` | ||
will find all files ending with `.cpp` and `.h` in the **current directory tree**, count how many lines they each have, and tell you the total. | ||
|
||
``` | ||
python sloc.py -d /some/arbitrary/path py rb | ||
``` | ||
will find all files ending with `.py` and `.rb` in the **/some/arbitrary/path directory tree**, count how many lines they each have, and tell you the total. |