summaryrefslogtreecommitdiff
path: root/lib/long-options.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-03-26 04:19:07 +0000
committerJim Meyering <jim@meyering.net>1999-03-26 04:19:07 +0000
commitbda142ee22446f6c3d050e8f30546ea3429d3d95 (patch)
tree1da63643b55228eea9de5f515dcd8802e1fbf950 /lib/long-options.c
parentacca102895eeb1c71ace5cf37e7d967da5bca80d (diff)
downloadgnulib-bda142ee22446f6c3d050e8f30546ea3429d3d95.tar.gz
(parse_long_options): Remove version-, copyright-,
and author-printing code. Do it via version_etc.
Diffstat (limited to 'lib/long-options.c')
-rw-r--r--lib/long-options.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/long-options.c b/lib/long-options.c
index ae70780826..82372d6e25 100644
--- a/lib/long-options.c
+++ b/lib/long-options.c
@@ -25,6 +25,7 @@
#include <getopt.h>
#include "closeout.h"
#include "long-options.h"
+#include "version-etc.h"
#if ENABLE_NLS
# include <libintl.h>
@@ -69,15 +70,7 @@ parse_long_options (int argc,
(*usage_func) (0);
case 'v':
- printf ("%s (%s) %s\n", command_name, package, version);
- printf (_("\
-\n\
-Copyright (C) 1999 Free Software Foundation, Inc.\n\
-This is free software; see the source for copying conditions. There is NO\n\
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
-\n\
-"));
- printf (_("Written by %s.\n"), authors);
+ version_etc (stdout, command_name, package, version, authors);
close_stdout (); /* FIXME: output failure exit status
should be settable via an arg. */
exit (0);