util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Davidlohr Bueso <dave@gnu.org>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: [PATCH] partx: use USAGE_ macros
Date: Wed, 26 Oct 2011 16:02:15 +0200	[thread overview]
Message-ID: <1319637735.3771.13.camel@offworld> (raw)

From: Davidlohr Bueso <dave@gnu.org>

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 partx/partx.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/partx/partx.c b/partx/partx.c
index b12eebc..c730e37 100644
--- a/partx/partx.c
+++ b/partx/partx.c
@@ -604,7 +604,8 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 {
 	int i;
 
-	fputs(_("\nUsage:\n"), out);
+	fputs(USAGE_HEADER, out);
+
 	fprintf(out,
 	      _(" %s [-a|-d|-s] [--nr <n:m> | <partition>] <disk>\n"),
 		program_invocation_short_name);
@@ -629,7 +630,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
 	for (i = 0; i < NCOLS; i++)
 		fprintf(out, " %10s  %s\n", infos[i].name, _(infos[i].help));
 
-	fprintf(out, _("\nFor more information see partx(8).\n"));
+	fprintf(out, USAGE_MAN_TAIL("partx(8)"));
 
 	exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }
-- 
1.7.7




             reply	other threads:[~2011-10-26 11:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-26 14:02 Davidlohr Bueso [this message]
2011-11-02 15:23 ` [PATCH] partx: use USAGE_ macros Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1319637735.3771.13.camel@offworld \
    --to=dave@gnu.org \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).