aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-24 12:06:43 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-25 14:45:39 -0600
commitfb10b971722ca630314ac7bccb9480f277a56d31 (patch)
tree02fd0768d261749c438441fe00d17ea9c656a0f1 /src
parent927207c1b793d601344d2bd3c8f3c04cefb6323e (diff)
rc-service: add usage message
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/rc/rc-service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rc/rc-service.c b/src/rc/rc-service.c
index 2fbdd754..d35b36b5 100644
--- a/src/rc/rc-service.c
+++ b/src/rc/rc-service.c
@@ -42,6 +42,11 @@
extern char *applet;
#include "_usage.h"
+#define usagestring "" \
+ "Usage: rc-service [options] [-i] <service> <cmd>...\n" \
+ " or: rc-service [options] -e <service>\n" \
+ " or: rc-service [options] -l\n" \
+ " or: rc-service [options] -r <service>"
#define getoptstring "e:ilr:" getoptstring_COMMON
static const struct option longopts[] = {
{ "exists", 1, NULL, 'e' },