diff options
author | Mattias Andrée <maandree@kth.se> | 2018-02-20 21:25:11 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-02-20 21:25:11 +0100 |
commit | 8a7a83179df28c24a15d2615863e31b43ad0a752 (patch) | |
tree | 80da7dc48ea9c4e5fe15ad550721510b2605ec42 /README | |
parent | Improve readability (diff) | |
download | loc-8a7a83179df28c24a15d2615863e31b43ad0a752.tar.gz loc-8a7a83179df28c24a15d2615863e31b43ad0a752.tar.bz2 loc-8a7a83179df28c24a15d2615863e31b43ad0a752.tar.xz |
Add -s
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'README')
-rw-r--r-- | README | 27 |
1 files changed, 15 insertions, 12 deletions
@@ -2,25 +2,28 @@ NAME loc - count number of lines of code SYNOPSIS - loc [file] ... + loc [-s] [file] ... DESCRIPTION loc counts the number of lines of code for each specified file. loc will treat each file as a C source code or C header - file. If file is -, the standard input is read. - - If no file is specified, the standard input is read, and - the number of lines of code is output on the format - - "%zu\n", <#lines of code> - - If exactly one file is specified, its number of lines of - code is output on the format - - "%zu\n", <#lines of code> + file. If file is -, or if a file is not specified, the + standard input is read. If more than one file is specified, each successfully line counted file will have its of lines of code output on the format "%s:%*s%zu\n", <file>, <some positive integer>, "", <#lines of code> + + The total for all processed files, is printed on the last + line with the format + + "%zu\n", <#total lines of code> + + If exactly one or no files are specified, this will be the + only line output. + +OPTIONS + -s + Only output the last line. (The total over all files.) |