From: Karel Zak Date: Wed, 7 Dec 2022 10:12:13 +0000 (+0100) Subject: blkdiscard: sort options X-Git-Tag: v2.39-rc1~385 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dde842e24d1507330405c05d4160f120ce17d48e;p=thirdparty%2Futil-linux.git blkdiscard: sort options Signed-off-by: Karel Zak --- diff --git a/sys-utils/blkdiscard.c b/sys-utils/blkdiscard.c index f1553b795a..e90fdfdb35 100644 --- a/sys-utils/blkdiscard.c +++ b/sys-utils/blkdiscard.c @@ -95,13 +95,13 @@ static void __attribute__((__noreturn__)) usage(void) fputs(USAGE_OPTIONS, out); fputs(_(" -f, --force disable all checking\n"), out); - fputs(_(" -o, --offset offset in bytes to discard from\n"), out); fputs(_(" -l, --length length of bytes to discard from the offset\n"), out); + fputs(_(" -o, --offset offset in bytes to discard from\n"), out); fputs(_(" -p, --step size of the discard iterations within the offset\n"), out); fputs(_(" -q, --quiet suppress warning messages\n"), out); fputs(_(" -s, --secure perform secure discard\n"), out); - fputs(_(" -z, --zeroout zero-fill rather than discard\n"), out); fputs(_(" -v, --verbose print aligned length and offset\n"), out); + fputs(_(" -z, --zeroout zero-fill rather than discard\n"), out); fputs(USAGE_SEPARATOR, out); printf(USAGE_HELP_OPTIONS(21)); @@ -162,15 +162,15 @@ int main(int argc, char **argv) int act = ACT_DISCARD; static const struct option longopts[] = { - { "help", no_argument, NULL, 'h' }, - { "version", no_argument, NULL, 'V' }, - { "offset", required_argument, NULL, 'o' }, { "force", no_argument, NULL, 'f' }, + { "help", no_argument, NULL, 'h' }, { "length", required_argument, NULL, 'l' }, - { "step", required_argument, NULL, 'p' }, + { "offset", required_argument, NULL, 'o' }, { "quiet", no_argument, NULL, 'q' }, { "secure", no_argument, NULL, 's' }, + { "step", required_argument, NULL, 'p' }, { "verbose", no_argument, NULL, 'v' }, + { "version", no_argument, NULL, 'V' }, { "zeroout", no_argument, NULL, 'z' }, { NULL, 0, NULL, 0 } };