summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-24 12:06:42 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-25 14:44:04 -0600
commit927207c1b793d601344d2bd3c8f3c04cefb6323e (patch)
tree306fae2058aa1fbfa5c6d92f1924ea7d1b988d98
parent5872bf1333ae67e42e40ae181b0b5f024ccf6a99 (diff)
downloadopenrc-927207c1b793d601344d2bd3c8f3c04cefb6323e.tar.gz
openrc-927207c1b793d601344d2bd3c8f3c04cefb6323e.tar.bz2
openrc-927207c1b793d601344d2bd3c8f3c04cefb6323e.tar.xz
rc-status: improve usage message accuracy and consistency
This makes it more clear that many of the options are used as an alternative to a runlevel. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
-rw-r--r--src/rc/rc-status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index 04e8bd3..f096851 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -172,7 +172,9 @@ print_services(const char *runlevel, RC_STRINGLIST *svcs)
}
#include "_usage.h"
-#define extraopts "[runlevel1] [runlevel2] ..."
+#define usagestring "" \
+ "Usage: rc-status [options] <runlevel>...\n" \
+ " or: rc-status [options] [-a | -c | -l | -r | -s | -u]"
#define getoptstring "aclrsu" getoptstring_COMMON
static const struct option longopts[] = {
{"all", 0, NULL, 'a'},