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: 1361825044.927207c1b793d601344d2bd3c8f3c04cefb6323e.WilliamH@OpenRC
1 commit: 927207c1b793d601344d2bd3c8f3c04cefb6323e
2 Author: Andrew Gregory <andrew.gregory.8 <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 24 17:06:42 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 20:44:04 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=927207c1
7
8 rc-status: improve usage message accuracy and consistency
9
10 This makes it more clear that many of the options are used as an
11 alternative to a runlevel.
12
13 Signed-off-by: Andrew Gregory <andrew.gregory.8 <AT> gmail.com>
14
15 ---
16 src/rc/rc-status.c | 4 +++-
17 1 files changed, 3 insertions(+), 1 deletions(-)
18
19 diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
20 index 04e8bd3..f096851 100644
21 --- a/src/rc/rc-status.c
22 +++ b/src/rc/rc-status.c
23 @@ -172,7 +172,9 @@ print_services(const char *runlevel, RC_STRINGLIST *svcs)
24 }
25
26 #include "_usage.h"
27 -#define extraopts "[runlevel1] [runlevel2] ..."
28 +#define usagestring "" \
29 + "Usage: rc-status [options] <runlevel>...\n" \
30 + " or: rc-status [options] [-a | -c | -l | -r | -s | -u]"
31 #define getoptstring "aclrsu" getoptstring_COMMON
32 static const struct option longopts[] = {
33 {"all", 0, NULL, 'a'},