diff options
author | Ruediger Meier | 2017-06-25 00:19:50 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-27 12:26:19 +0200 |
commit | b1a294c448582c5571fbf7c0d363357c88154016 (patch) | |
tree | 97a83cb04af7879473368edb259781ad02a89272 /schedutils | |
parent | misc: revert to the old USAGE_HELP strings (diff) | |
download | kernel-qcow2-util-linux-b1a294c448582c5571fbf7c0d363357c88154016.tar.gz kernel-qcow2-util-linux-b1a294c448582c5571fbf7c0d363357c88154016.tar.xz kernel-qcow2-util-linux-b1a294c448582c5571fbf7c0d363357c88154016.zip |
misc: introduce print_usage_help_options()
Consolidate --help and --version descriptions. We are
now able to align them to the other options.
We changed include/c.h. The rest of this patch was
generated by sed, plus manually setting the right
alignment numbers. We do not change anything but
white spaces in the --help output.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'schedutils')
-rw-r--r-- | schedutils/chrt.c | 3 | ||||
-rw-r--r-- | schedutils/ionice.c | 3 | ||||
-rw-r--r-- | schedutils/taskset.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c index d1abbe14e..fbe20e160 100644 --- a/schedutils/chrt.c +++ b/schedutils/chrt.c @@ -165,8 +165,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -v, --verbose display status information\n"), out); fputs(USAGE_SEPARATOR, out); - fputs(USAGE_HELP, out); - fputs(USAGE_VERSION, out); + print_usage_help_options(22); fprintf(out, USAGE_MAN_TAIL("chrt(1)")); exit(EXIT_SUCCESS); diff --git a/schedutils/ionice.c b/schedutils/ionice.c index 9d0648bca..098fb255e 100644 --- a/schedutils/ionice.c +++ b/schedutils/ionice.c @@ -121,8 +121,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -u, --uid <uid>... act on already running processes owned by these users\n"), out); fputs(USAGE_SEPARATOR, out); - fputs(USAGE_HELP, out); - fputs(USAGE_VERSION, out); + print_usage_help_options(24); fprintf(out, USAGE_MAN_TAIL("ionice(1)")); diff --git a/schedutils/taskset.c b/schedutils/taskset.c index 9870040e7..c55b986fb 100644 --- a/schedutils/taskset.c +++ b/schedutils/taskset.c @@ -78,7 +78,6 @@ static void __attribute__((__noreturn__)) usage(void) program_invocation_short_name); fprintf(out, USAGE_MAN_TAIL("taskset(1)")); - exit(EXIT_SUCCESS); } |