From 5872bf1333ae67e42e40ae181b0b5f024ccf6a99 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 24 Feb 2013 12:06:41 -0500 Subject: 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 --- src/rc/rc-update.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rc') 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 \n" \ - " rc-update [options] del service \n" \ - " rc-update [options] show" +#define usagestring "" \ + "Usage: rc-update [options] add [...]\n" \ + " or: rc-update [options] del [...]\n" \ + " or: rc-update [options] [show [...]]" #define getoptstring "su" getoptstring_COMMON static const struct option longopts[] = { { "stack", 0, NULL, 's' }, -- cgit v1.2.3