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 /loc.1 | |
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 '')
-rw-r--r-- | loc.1 | 31 |
1 files changed, 14 insertions, 17 deletions
@@ -13,30 +13,27 @@ will treat each file as a C source code or C header file. If .I file is .BR - , -the standard input is read. +or if a file is not specified, the standard input is read. .PP -If no +If more than one .I file -is specified, the standard input is read, and the number -of lines of code is output on the format +is specified, each successfully line counted file will have +its of lines of code output on the format .nf - \fB"%zu\n"\fP, <\fI#lines of code\fP> + \fB"%s:%*s%zu\n"\fP, <\fIfile\fP>, <\fIsome positive integer\fP>, \fB""\fP, <\fI#lines of code\fP> .fi .PP -If exactly one -.I file -is specified, its number of lines of code is output on the format +The total for all processed files, is printed on the last +line with the format .nf - \fB"%zu\n"\fP, <\fI#lines of code\fP> + \fB"%zu\n"\fP, <\fI#total lines of code\fP> .fi .PP -If more than one -.I file -is specified, each successfully line counted file will have -its of lines of code output on the format -.nf - - \fB"%s:%*s%zu\n"\fP, <\fIfile\fP>, <\fIsome positive integer\fP>, \fB""\fP, <\fI#lines of code\fP> -.fi +If exactly one or no files are specified, this will be the +only line output. +.SH OPTIONS +.TP +.B \-s +Only output the last line. (The total over all files.) |