aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-23 16:12:56 +0000
committerNick Clifton <nickc@redhat.com>2002-01-23 16:12:56 +0000
commit8b53311e1054be6e53e1ccef58c3402b066b6f53 (patch)
tree7247176865811241392f2bb8e2d0fcc6d2c3b386 /binutils/ar.c
parentc69539487b6c97e8bdef522f6724d61c226a85f3 (diff)
downloadfsf-binutils-gdb-8b53311e1054be6e53e1ccef58c3402b066b6f53.zip
fsf-binutils-gdb-8b53311e1054be6e53e1ccef58c3402b066b6f53.tar.gz
fsf-binutils-gdb-8b53311e1054be6e53e1ccef58c3402b066b6f53.tar.bz2
Tidy up formatting of --help output.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index e892713..92d9b35 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1,6 +1,6 @@
/* ar.c - Archive modify and extract.
Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
- 2001
+ 2001, 2002
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -280,8 +280,14 @@ usage (help)
fprintf (s, _(" [-X32_64] - (ignored)\n"));
}
else
+ {
/* xgettext:c-format */
- fprintf (s, _("Usage: %s [-vV] archive\n"), program_name);
+ fprintf (s, _("Usage: %s [options] archive\n"), program_name);
+ fprintf (s, _(" Generate an index to speed access to archives\n"));
+ fprintf (s, _(" The options are:\n\
+ -h --help Print this help message\n\
+ -V --version Print version information\n"));
+ }
list_supported_targets (program_name, stderr);
@@ -453,7 +459,10 @@ main (argc, argv)
{
boolean touch = false;
- if (argc < 2 || strcmp (argv[1], "--help") == 0)
+ if (argc < 2
+ || strcmp (argv[1], "--help") == 0
+ || strcmp (argv[1], "-h") == 0
+ || strcmp (argv[1], "-H") == 0)
usage (0);
if (strcmp (argv[1], "-V") == 0
|| strcmp (argv[1], "-v") == 0