projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[gnulib.git]
/
lib
/
long-options.c
diff --git
a/lib/long-options.c
b/lib/long-options.c
index
fdc9ec0
..
82372d6
100644
(file)
--- 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 <getopt.h>
#include "closeout.h"
#include "long-options.h"
+#include "version-etc.h"
#if ENABLE_NLS
# include <libintl.h>
#if ENABLE_NLS
# include <libintl.h>
@@
-69,8
+70,7
@@
parse_long_options (int argc,
(*usage_func) (0);
case 'v':
(*usage_func) (0);
case 'v':
- printf ("%s (%s) %s\n", command_name, package, version);
- 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);
close_stdout (); /* FIXME: output failure exit status
should be settable via an arg. */
exit (0);