From: Jim Meyering Date: Fri, 26 Mar 1999 04:19:07 +0000 (+0000) Subject: (parse_long_options): Remove version-, copyright-, X-Git-Tag: FILEUTILS-4_0e~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a147b2b432b2d516c8d506b2ead75228017c98d;p=thirdparty%2Fcoreutils.git (parse_long_options): Remove version-, copyright-, and author-printing code. Do it via version_etc. --- 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 #include "closeout.h" #include "long-options.h" +#include "version-etc.h" #if ENABLE_NLS # include @@ -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);