diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-02-24 12:06:41 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2013-02-25 14:41:30 -0600 |
commit | 5872bf1333ae67e42e40ae181b0b5f024ccf6a99 (patch) | |
tree | 4d4e03a4099e8e4d6f484364a289aa4a0703b865 /src | |
parent | 67377cc09fb597e4e65fde52ca0c5cb269d00c15 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/rc-update.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rc/rc-update.c b/src/rc/rc-update.c index 3e51840a..273f7ef7 100644 --- a/src/rc/rc-update.c +++ b/src/rc/rc-update.c @@ -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' }, |