summaryrefslogtreecommitdiff
path: root/summain.1
diff options
context:
space:
mode:
Diffstat (limited to 'summain.1')
-rw-r--r--summain.123
1 files changed, 23 insertions, 0 deletions
diff --git a/summain.1 b/summain.1
index ebecb01..d163210 100644
--- a/summain.1
+++ b/summain.1
@@ -3,6 +3,8 @@
summain \- gather file checksums and metadata
.SH SYNOPSIS
.B summain
+.RB [ \-r ]
+.RB [ \-\-relative\-paths ]
.RI [ file ...]
.SH DESCRIPTION
.B summain
@@ -39,3 +41,24 @@ Normalized means that there will be no differences.
The numbers are reported so that hard links can be checked.
.PP
Directories named on the command line will be recursed automatically.
+.SH OPTIONS
+.TP
+.BR \-r ", " \-\-relative\-paths
+Print pathnames relative to the command line argument they derive from.
+If the command line argument is the directory called
+.I foo
+and there is a file called
+.IR bar ,
+normally
+.I foo/bar
+is printed as the name.
+With this option,
+.I bar
+is printed instead.
+This can be handy for normalizing the paths for comparing two copies of the
+same directory tree in two different locations on disk:
+run
+.B summain
+on both,
+and compare the output with
+.BR diff (1).