From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F2381198005 for ; Mon, 25 Feb 2013 20:50:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8261DE0700; Mon, 25 Feb 2013 20:50:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20562E0700 for ; Mon, 25 Feb 2013 20:50:55 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 30A0933BF0D for ; Mon, 25 Feb 2013 20:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 39225E4083 for ; Mon, 25 Feb 2013 20:50:48 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1361824890.5872bf1333ae67e42e40ae181b0b5f024ccf6a99.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc-update.c X-VCS-Directories: src/rc/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 5872bf1333ae67e42e40ae181b0b5f024ccf6a99 X-VCS-Branch: master Date: Mon, 25 Feb 2013 20:50:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 1b9b44dc-b24a-44cb-8983-1e8d76376a6f X-Archives-Hash: 9357849fa95856a4a0ecebc402a588fa commit: 5872bf1333ae67e42e40ae181b0b5f024ccf6a99 Author: Andrew Gregory gmail com> AuthorDate: Sun Feb 24 17:06:41 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Feb 25 20:41:30 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=5872bf13 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 gmail.com> --- 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 3e51840..273f7ef 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' },