changeset 1755:f486d0e61ad0

(parse_long_options): Remove version-, copyright-, and author-printing code. Do it via version_etc.
author Jim Meyering <jim@meyering.net>
date Fri, 26 Mar 1999 04:19:07 +0000
parents ddaa9b176f63
children 6702df8a7222
files lib/long-options.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	  (*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);