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:
parent
67377cc09f
commit
5872bf1333
@ -196,9 +196,9 @@ 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"
|
||||
"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' },
|
||||
|
Loading…
Reference in New Issue
Block a user