diff options
author | Jim Meyering <jim@meyering.net> | 1999-03-26 04:19:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-03-26 04:19:07 +0000 |
commit | 2a147b2b432b2d516c8d506b2ead75228017c98d (patch) | |
tree | 6cdeae13bdb3ef36cbe9faba2255b5ecfa458fd0 /lib | |
parent | c004c87b6c36567b8e23c8b10012d2d060bccf68 (diff) | |
download | coreutils-2a147b2b432b2d516c8d506b2ead75228017c98d.tar.xz |
(parse_long_options): Remove version-, copyright-,
and author-printing code. Do it via version_etc.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/long-options.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/long-options.c b/lib/long-options.c index ae7078082..82372d6e2 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); |