rc-update: improve usage message accuracy and consistency

The old message did not indicate that the runlevel argument was optional
for add and del or that it could be used with show.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
Andrew Gregory authored and William Hubbs committed 2013-02-25 14:41:30 -06:00
1 parent 67377cc09f
commit 5872bf1333
1 file changed
+4 -4
+4 -4
View File
@@ -195,10 +195,10 @@ show(RC_STRINGLIST *runlevels, bool verbose)
}
#include "_usage.h"
#define usagestring "" \
"Usage: rc-update [options] add service <runlevel>\n" \
" rc-update [options] del service <runlevel>\n" \
" rc-update [options] show"
#define usagestring "" \
"Usage: rc-update [options] add <service> [<runlevel>...]\n" \
" or: rc-update [options] del <service> [<runlevel>...]\n" \
" or: rc-update [options] [show [<runlevel>...]]"
#define getoptstring "su" getoptstring_COMMON
static const struct option longopts[] = {
{ "stack", 0, NULL, 's' },