]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
hardlink: (usage) improve the descriptions of three options
authorBenno Schulenberg <bensberg@telfort.nl>
Fri, 23 May 2025 12:04:06 +0000 (14:04 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 26 May 2025 17:24:05 +0000 (19:24 +0200)
The first description was too wordy for a --help text, the second
was vague and seemed to imply that it should be combined with the
preceding option, and the third failed to mention that it doesn't
actually link anything.

(Note: the choice for -m for --maximize and -M for --minimize is
unfortunate, as most people would guess the opposite, especially
since -s is used for --minimum-size and -S for --maximum-size.)

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
misc-utils/hardlink.c

index 7f2ff804638dd6c5c13ecd558fffd79ded7b7884..5365e5370d0007c9bd91ec844cf168b9798a96b3 100644 (file)
@@ -1195,11 +1195,10 @@ static void __attribute__((__noreturn__)) usage(void)
        fputs(_(" -d, --respect-dir          directory names have to be identical\n"), out);
        fputs(_(" -f, --respect-name         filenames have to be identical\n"), out);
        fputs(_(" -i, --include <regex>      regular expression to include files/dirs\n"), out);
-       fputs(_(" -m, --maximize             maximize the hardlink count, remove the file with\n"
-               "                              lowest hardlink count\n"), out);
-       fputs(_(" -M, --minimize             reverse the meaning of -m\n"), out);
+       fputs(_(" -m, --maximize             keep the file with the most links\n"), out);
+       fputs(_(" -M, --minimize             keep the file with the fewest links\n"), out);
        fputs(_(" -n, --dry-run              don't actually link anything\n"), out);
-       fputs(_(" -l, --list-duplicates      print every group of duplicate files\n"), out);
+       fputs(_(" -l, --list-duplicates      just list paths of duplicates, don't link them\n"), out);
        fputs(_(" -z, --zero                 delimit output with NULs instead of newlines\n"), out);
        fputs(_(" -o, --ignore-owner         ignore owner changes\n"), out);
        fputs(_(" -F, --prioritize-trees     files found in the earliest specified top-level\n"