aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-23 20:53:27 +0200
committerMattias Andrée <m@maandree.se>2026-05-23 21:09:31 +0200
commite90a213afd92e8bd5db19629c181c0fd572faf42 (patch)
tree79cefe9439504d7eac8ba431d972028802fdda0d /README
downloadbraces-b96e69baacd1b0b4a3bd61e628cef0a14df5d644.tar.gz
braces-b96e69baacd1b0b4a3bd61e628cef0a14df5d644.tar.bz2
braces-b96e69baacd1b0b4a3bd61e628cef0a14df5d644.tar.xz
First commit1.0
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--README31
1 files changed, 31 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..d8a6663
--- /dev/null
+++ b/README
@@ -0,0 +1,31 @@
+NAME
+ braces - count number of braces in code
+
+SYNOPSIS
+ braces [-s] [file] ...
+
+DESCRIPTION
+ braces counts the number of braces in code for each specified
+ file. braces will treat each file as a C source code or
+ C header 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
+ processed file will have its line count output in the format
+
+ "%s:%*s%zu\n", <file>, <some positive integer>, "", <#braces in code>
+
+ The total for all processed files is printed on the last line
+ with the format
+
+ "%zu\n", <total #braces in 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.)
+
+SEE ALSO
+ semicolons(1)