From 927207c1b793d601344d2bd3c8f3c04cefb6323e Mon Sep 17 00:00:00 2001
From: Andrew Gregory <andrew.gregory.8@gmail.com>
Date: Sun, 24 Feb 2013 12:06:42 -0500
Subject: 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>
---
 src/rc/rc-status.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/rc')

diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index 04e8bd33..f0968516 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'},
-- 
cgit v1.2.3