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 /login-utils/su-common.c | |
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 'login-utils/su-common.c')
-rw-r--r-- | login-utils/su-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/login-utils/su-common.c b/login-utils/su-common.c index d7b0a93dd..574d98e22 100644 --- a/login-utils/su-common.c +++ b/login-utils/su-common.c @@ -709,8 +709,7 @@ usage(void) fputs (_(" -s, --shell <shell> run <shell> if /etc/shells allows it\n"), stdout); fputs(USAGE_SEPARATOR, stdout); - fputs(USAGE_HELP, stdout); - fputs(USAGE_VERSION, stdout); + print_usage_help_options(33); printf(USAGE_MAN_TAIL(su_mode == SU_MODE ? "su(1)" : "runuser(1)")); exit(EXIT_SUCCESS); } |