util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] partx: use USAGE_ macros
@ 2011-10-26 14:02 Davidlohr Bueso
  2011-11-02 15:23 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2011-10-26 14:02 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-02 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 14:02 [PATCH] partx: use USAGE_ macros Davidlohr Bueso
2011-11-02 15:23 ` Karel Zak

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).