Skip to content

Commit

Permalink
Disambiguate the options '--recurse' and '--recurse:'
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrotosi authored and jobermayr committed May 16, 2014
1 parent a4054f1 commit 64198ec
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion fdupes.1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ for every directory given follow subdirectories encountered within
.TP
.B -R --recurse:
for each directory given after this option follow subdirectories
encountered within
encountered within (note the ':' at the end of option; see the
Examples section below for further explanation)
.TP
.B -s --symlinks
follow symlinked directories
Expand Down Expand Up @@ -85,6 +86,15 @@ or
.B --sameline
is specified, spaces and backslash characters (\fB\e\fP) appearing
in a filename are preceded by a backslash character.

.SH EXAMPLES
.TP
.B fdupes a --recurse: b
will follow subdirectories under b, but not those under a.
.TP
.B fdupes a --recurse b
will follow subdirectories under both a and b.

.SH CAVEATS
If fdupes returns with an error message such as
.B fdupes: error invoking md5sum
Expand Down
3 changes: 2 additions & 1 deletion fdupes.c
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,8 @@ void help_text()
printf(" -r --recurse \tfor every directory given follow subdirectories\n");
printf(" \tencountered within\n");
printf(" -R --recurse: \tfor each directory given after this option follow\n");
printf(" \tsubdirectories encountered within\n");
printf(" \tsubdirectories encountered within (note the ':' at\n");
printf(" \tthe end of the option, manpage for more details)\n");
printf(" -s --symlinks \tfollow symlinks\n");
printf(" -H --hardlinks \tnormally, when two or more files point to the same\n");
printf(" \tdisk area they are treated as non-duplicates; this\n");
Expand Down

0 comments on commit 64198ec

Please sign in to comment.