From: hanjinpeng Date: Sun, 2 Aug 2026 16:44:24 +0000 (-0400) Subject: bits: fix the layout of the --help output X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=138488e0adb69bc5ab0d5416cb1540f5a03ed65d;p=thirdparty%2Futil-linux.git bits: fix the layout of the --help output The -w/--width and -f/--fail-width entries are printed after USAGE_HELP_OPTIONS(), so --help and --version show up in the middle of the option list instead of at its end, unlike every other util-linux program. The description of -f is also indented by one column too many and does not line up with the rest. Options: -h, --help display this help -V, --version display version -w , --width maximum width of bit masks (default 8192) -f, --fail-width fail if bit list contains values wider than width --- diff --git a/text-utils/bits.c b/text-utils/bits.c index edf1979ba..a174082d7 100644 --- a/text-utils/bits.c +++ b/text-utils/bits.c @@ -227,12 +227,13 @@ static void __attribute__((__noreturn__)) usage(void) stdout); fputs(USAGE_OPTIONS, stdout); - fprintf(stdout, USAGE_HELP_OPTIONS(21)); fputsln(_(" -w , --width \n" " maximum width of bit masks (default 8192)"), stdout); - fputsln(_(" -f, --fail-width fail if bit list contains values wider than width"), + fputsln(_(" -f, --fail-width fail if bit list contains values wider than width"), stdout); + fputs(USAGE_SEPARATOR, stdout); + fprintf(stdout, USAGE_HELP_OPTIONS(21)); fputs(_("\nOutput modes:\n"), stdout); fputsln(_(" -m, --mask display bits as a hex mask value (default)"),