X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Flong-options.c;h=82372d6e250f7ef26ea0521d3669d19495b5ed7a;hb=3c3d25cda666d07b6b0d3c3f998e3e652d79cf2d;hp=ae70780826058e21beb7d5ccf8496b05355894e8;hpb=840150990ae57419d93c2001809c71e03c911b89;p=gnulib.git 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 #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);