Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandigit authored Dec 1, 2018
1 parent 8db5928 commit dc409ca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
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.

0 comments on commit dc409ca

Please sign in to comment.