diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-24 00:08:42 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-24 00:08:42 +0200 |
commit | 2e33c4331f9f1169645e4b2e9c7c8861454f6b51 (patch) | |
tree | 670aed78a63779ac79fc02ba06d774cc172f5010 /src | |
parent | 2218198b73ea3f73cee1238e0f6dfd313f182f48 (diff) |
minor fixes to help texts
Diffstat (limited to 'src')
-rw-r--r-- | src/install.c | 4 | ||||
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/notify.c | 2 | ||||
-rw-r--r-- | src/systemctl.c | 28 |
4 files changed, 18 insertions, 18 deletions
diff --git a/src/install.c b/src/install.c index e59e108c02..0c9f086663 100644 --- a/src/install.c +++ b/src/install.c @@ -59,13 +59,13 @@ Hashmap *will_install = NULL, *have_installed = NULL; static int help(void) { - printf("%s [options]\n\n" + printf("%s [OPTIONS...] {COMMAND} ...\n\n" "Install init system units.\n\n" " -h --help Show this help\n" " --force Override existing links\n" " --system Install into system\n" " --session Install into session\n" - " --global Install into all sessions\n" + " --global Install into all sessions\n\n" "Commands:\n" " enable [NAME...] Enable one or more units\n" " disable [NAME...] Disable one or more units\n" diff --git a/src/main.c b/src/main.c index a002e11c53..799184e460 100644 --- a/src/main.c +++ b/src/main.c @@ -536,7 +536,7 @@ static int parse_argv(int argc, char *argv[]) { static int help(void) { - printf("%s [options]\n\n" + printf("%s [OPTIONS...]\n\n" "Starts up and maintains the system or a session.\n\n" " -h --help Show this help\n" " --unit=UNIT Set default unit\n" diff --git a/src/notify.c b/src/notify.c index 77978104a7..6dd708a900 100644 --- a/src/notify.c +++ b/src/notify.c @@ -39,7 +39,7 @@ static bool arg_booted = false; static int help(void) { - printf("%s [options] [VARIABLE=VALUE...]\n\n" + printf("%s [OPTIONS...] [VARIABLE=VALUE...]\n\n" "Notify the init system about service status updates.\n\n" " -h --help Show this help\n" " --ready Inform the init system about service start-up completion\n" diff --git a/src/systemctl.c b/src/systemctl.c index 2efc85635d..321e26992b 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1428,7 +1428,7 @@ finish: static int systemctl_help(void) { - printf("%s [options]\n\n" + printf("%s [OPTIONS...] {COMMAND} ...\n\n" "Send control commands to the init daemon.\n\n" " -h --help Show this help\n" " -t --type=TYPE List only units of a particular type\n" @@ -1437,7 +1437,7 @@ static int systemctl_help(void) { " --system Connect to system bus\n" " --session Connect to session bus\n" " --block Wait until operation finished\n" - " --no-wall Don't send wall message before reboot/halt/power-off\n\n" + " --no-wall Don't send wall message before halt/power-off/reboot\n\n" "Commands:\n" " list-units List units\n" " list-jobs List jobs\n" @@ -1459,8 +1459,8 @@ static int systemctl_help(void) { " set-environment [NAME=VALUE...] Set one or more environment variables\n" " unset-environment [NAME...] Unset one or more environment variables\n" " halt Shut down and halt the system\n" + " poweroff Shut down and power-off the system\n" " reboot Shut down and reboot the system\n" - " poweroff Shut down and power off the system\n" " default Enter default mode\n" " rescue Enter rescue mode\n" " emergency Enter emergency mode\n", @@ -1471,17 +1471,17 @@ static int systemctl_help(void) { static int halt_help(void) { - printf("%s [options]\n\n" + printf("%s [OPTIONS...]\n\n" "%s the system.\n\n" " --help Show this help\n" " --halt Halt the machine\n" " -p --poweroff Switch off the machine\n" " --reboot Reboot the machine\n" - " -f --force Force immediate reboot/halt/power-off\n" - " -w --wtmp-only Don't reboot/halt/power-off, just write wtmp record\n" + " -f --force Force immediate halt/power-off/reboot\n" + " -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record\n" " -d --no-wtmp Don't write wtmp record\n" - " -n --no-sync Don't sync before reboot/halt/power-off\n" - " --no-wall Don't send wall message before reboot/halt/power-off\n", + " -n --no-sync Don't sync before halt/power-off/reboot\n" + " --no-wall Don't send wall message before halt/power-off/reboot\n", program_invocation_short_name, arg_action == ACTION_REBOOT ? "Reboot" : arg_action == ACTION_POWEROFF ? "Power off" : @@ -1492,15 +1492,15 @@ static int halt_help(void) { static int shutdown_help(void) { - printf("%s [options] [now] [WALL...]\n\n" + printf("%s [OPTIONS...] [now] [WALL...]\n\n" "Shut down the system.\n\n" " --help Show this help\n" " -H --halt Halt the machine\n" " -P --poweroff Power-off the machine\n" " -r --reboot Reboot the machine\n" " -h Equivalent to --poweroff, overriden by --halt\n" - " -k Don't reboot/halt/power-off, just send warnings\n" - " --no-wall Don't send wall message before reboot/halt/power-off\n", + " -k Don't halt/power-off/reboot, just send warnings\n" + " --no-wall Don't send wall message before halt/power-off/reboot\n", program_invocation_short_name); return 0; @@ -1508,10 +1508,10 @@ static int shutdown_help(void) { static int telinit_help(void) { - printf("%s [options]\n\n" + printf("%s [OPTIONS...] {COMMAND}\n\n" "Send control commands to the init daemon.\n\n" " --help Show this help\n" - " --no-wall Don't send wall message before reboot/halt/power-off\n\n" + " --no-wall Don't send wall message before halt/power-off/reboot\n\n" "Commands:\n" " 0 Power-off the machine\n" " 6 Reboot the machine\n" @@ -1526,7 +1526,7 @@ static int telinit_help(void) { static int runlevel_help(void) { - printf("%s [options]\n\n" + printf("%s [OPTIONS...]\n\n" "Prints the previous and current runlevel of the init system.\n\n" " --help Show this help\n", program_invocation_short_name); |