From: Benno Schulenberg Date: Fri, 23 May 2025 12:04:06 +0000 (+0200) Subject: hardlink: (usage) improve the descriptions of three options X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e64d16302f634e028da0e61ee6e4b0217ad05762;p=thirdparty%2Futil-linux.git hardlink: (usage) improve the descriptions of three options 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 --- diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index 7f2ff8046..5365e5370 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -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 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"