Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Mon, 25 Feb 2013 20:50:55
Message-Id: 1361824890.5872bf1333ae67e42e40ae181b0b5f024ccf6a99.WilliamH@OpenRC
1 commit: 5872bf1333ae67e42e40ae181b0b5f024ccf6a99
2 Author: Andrew Gregory <andrew.gregory.8 <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 24 17:06:41 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 20:41:30 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=5872bf13
7
8 rc-update: improve usage message accuracy and consistency
9
10 The old message did not indicate that the runlevel argument was optional
11 for add and del or that it could be used with show.
12
13 Signed-off-by: Andrew Gregory <andrew.gregory.8 <AT> gmail.com>
14
15 ---
16 src/rc/rc-update.c | 8 ++++----
17 1 files changed, 4 insertions(+), 4 deletions(-)
18
19 diff --git a/src/rc/rc-update.c b/src/rc/rc-update.c
20 index 3e51840..273f7ef 100644
21 --- a/src/rc/rc-update.c
22 +++ b/src/rc/rc-update.c
23 @@ -195,10 +195,10 @@ show(RC_STRINGLIST *runlevels, bool verbose)
24 }
25
26 #include "_usage.h"
27 -#define usagestring "" \
28 - "Usage: rc-update [options] add service <runlevel>\n" \
29 - " rc-update [options] del service <runlevel>\n" \
30 - " rc-update [options] show"
31 +#define usagestring "" \
32 + "Usage: rc-update [options] add <service> [<runlevel>...]\n" \
33 + " or: rc-update [options] del <service> [<runlevel>...]\n" \
34 + " or: rc-update [options] [show [<runlevel>...]]"
35 #define getoptstring "su" getoptstring_COMMON
36 static const struct option longopts[] = {
37 { "stack", 0, NULL, 's' },