- {
- case 'h':
- (*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);
- close_stdout (); /* FIXME: output failure exit status
- should be settable via an arg. */
- exit (0);
-
- default:
- /* Don't process any other long-named options. */
- break;
- }
+ {
+ case 'h':
+ (*usage_func) (EXIT_SUCCESS);
+
+ case 'v':
+ {
+ va_list authors;
+ va_start (authors, usage_func);
+ version_etc_va (stdout, command_name, package, version, authors);
+ exit (0);
+ }
+
+ default:
+ /* Don't process any other long-named options. */
+ break;
+ }