bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] base64: use the HELP and VERSION macros instead of the hard


From: Jim Meyering
Subject: Re: [PATCH] base64: use the HELP and VERSION macros instead of the hard coded text.
Date: Mon, 14 Dec 2009 08:41:03 +0100

Thiago Farina wrote:
> Subject: [PATCH] base64: use the HELP and VERSION macros instead of the hard 
> coded text.
>
> * src/base64: Use HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
>               macros instead of the hard coded text.

Thanks.  I adjusted the log message and pushed that.

>From bf01ac3004bdfdbcf2e1214f6c2d83757207504a Mon Sep 17 00:00:00 2001
From: Thiago Farina <address@hidden>
Date: Sun, 13 Dec 2009 14:27:59 -0500
Subject: [PATCH] base64: use *_OPTION_DESCRIPTION macros instead of hard-coded 
strings

* src/base64 (usage): Use HELP_OPTION_DESCRIPTION and
VERSION_OPTION_DESCRIPTION macros, not literal strings.
---
 src/base64.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/base64.c b/src/base64.c
index 0bca87c..723385f 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -68,9 +68,8 @@ Base64 encode or decode FILE, or standard input, to standard 
output.\n\
   -i, --ignore-garbage  When decoding, ignore non-alphabet characters.\n\
 \n\
 "), stdout);
-      fputs (_("\
-      --help            Display this help and exit.\n\
-      --version         Output version information and exit.\n"), stdout);
+      fputs (HELP_OPTION_DESCRIPTION, stdout);
+      fputs (VERSION_OPTION_DESCRIPTION, stdout);
       fputs (_("\
 \n\
 With no FILE, or when FILE is -, read standard input.\n"), stdout);
--
1.6.6.rc2.275.g51e2d




reply via email to

[Prev in Thread] Current Thread [Next in Thread]