aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2019-02-06 16:53:49 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2019-02-12 16:54:12 -0600
commit155b8451945f8a17cd61ad56be3bb09541c3719a (patch)
tree0455f5bd773861d0dceb07512d3a3f7a5ef8ff4c /src
parent9b578808fb67682780adb17157330934a5c2cce7 (diff)
improve shutdown documentation
This fixes #290.
Diffstat (limited to 'src')
-rw-r--r--src/rc/openrc-shutdown.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/rc/openrc-shutdown.c b/src/rc/openrc-shutdown.c
index 45936052..82dde517 100644
--- a/src/rc/openrc-shutdown.c
+++ b/src/rc/openrc-shutdown.c
@@ -67,7 +67,15 @@ const char * const longopts_help[] = {
"write wtmp boot record and exit",
longopts_help_COMMON
};
-const char *usagestring = NULL;
+const char *usagestring = "" \
+ "Usage: openrc-shutdown -c | --cancel\n" \
+ " or: openrc-shutdown -R | --reexec\n" \
+ " or: openrc-shutdown -w | --write-only\n" \
+ " or: openmrc-shutdown -H | --halt time\n" \
+ " or: openrc-shutdown -K | --kexec time\n" \
+ " or: openrc-shutdown -p | --poweroff time\n" \
+ " or: openrc-shutdown -r | --reboot time\n" \
+ " or: openrc-shutdown -s | --single time";
const char *exclusive = "Select one of "
"--cancel, --halt, --kexec, --poweroff, --reexec, --reboot, --single or \n"
"--write-only";