about summary refs log tree commit diff
path: root/locale/programs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-13 05:28:45 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-13 05:28:45 +0000
commit9d9ab48728080f0cd9b8a38346f2b4842d057c33 (patch)
treeddae8ad105d6724de6ed1dd8deb08be12e6b0d00 /locale/programs
parentc0154f46b7cd10d15eee1a76afe2cf8af94d67b7 (diff)
downloadglibc-9d9ab48728080f0cd9b8a38346f2b4842d057c33.tar.gz
glibc-9d9ab48728080f0cd9b8a38346f2b4842d057c33.tar.xz
glibc-9d9ab48728080f0cd9b8a38346f2b4842d057c33.zip
Simplify help message printing.
Diffstat (limited to 'locale/programs')
-rw-r--r--locale/programs/locale.c25
1 files changed, 4 insertions, 21 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index dede36d256..adf9944578 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -85,7 +85,9 @@ static const struct argp_option options[] =
 };
 
 /* Short description of program.  */
-static const char doc[] = N_("Get locale-specific information.");
+static const char doc[] = N_("Get locale-specific information.\v\
+For bug reporting instructions, please see:\n\
+<http://www.gnu.org/software/libc/bugs.html>.\n");
 
 /* Strings for arguments in help texts.  */
 static const char args_doc[] = N_("NAME\n[-a|-m]");
@@ -93,13 +95,10 @@ static const char args_doc[] = N_("NAME\n[-a|-m]");
 /* Prototype for option handler.  */
 static error_t parse_opt (int key, char *arg, struct argp_state *state);
 
-/* Function to print some extra text in the help message.  */
-static char *more_help (int key, const char *text, void *input);
-
 /* Data structure to communicate with argp functions.  */
 static struct argp argp =
 {
-  options, parse_opt, args_doc, doc, NULL, more_help
+  options, parse_opt, args_doc, doc
 };
 
 
@@ -269,22 +268,6 @@ parse_opt (int key, char *arg, struct argp_state *state)
 }
 
 
-static char *
-more_help (int key, const char *text, void *input)
-{
-  switch (key)
-    {
-    case ARGP_KEY_HELP_EXTRA:
-      /* We print some extra information.  */
-      return xstrdup (gettext ("\
-For bug reporting instructions, please see:\n\
-<http://www.gnu.org/software/libc/bugs.html>.\n"));
-    default:
-      break;
-    }
-  return (char *) text;
-}
-
 /* Print the version information.  */
 static void
 print_version (FILE *stream, struct argp_state *state)