@@ -138,7 +138,7 @@ main(int argc, char **argv)
138
138
return EXIT_SUCCESS ;
139
139
}
140
140
if (verbose_flag && optind >= argc ) {
141
- print_version (argv [0 ]);
141
+ print_usage (argv [0 ]);
142
142
return EXIT_SUCCESS ;
143
143
}
144
144
if (list_flag ) {
@@ -210,7 +210,6 @@ print_usage(char const *arg)
210
210
fprintf (stdout , out , arg );
211
211
fprintf (stdout , "available commands:\n" );
212
212
fprintf (stdout , " %-23s %s\n" , "-v, --verbose" , "verbose output (when used with -c or -u)" );
213
- fprintf (stdout , " %-23s %s\n" , "-v, --version" , "print version and exit" );
214
213
fprintf (stdout , " %-23s %s\n" , "-h, --help" , "print this help and exit" );
215
214
fprintf (stdout , " %-23s %s\n" , "-u, --update" , "update local database" );
216
215
fprintf (stdout , " %-23s %s\n" , "-c, --clear-cache" , "clear local database" );
@@ -222,6 +221,7 @@ print_usage(char const *arg)
222
221
fprintf (stdout , " %-23s %s\n" , "--linux" , "show command page for Linux" );
223
222
fprintf (stdout , " %-23s %s\n" , "--osx" , "show command page for OSX" );
224
223
fprintf (stdout , " %-23s %s\n" , "--sunos" , "show command page for SunOS" );
224
+ fprintf (stdout , " %-23s %s\n" , "--version" , "print version and exit" );
225
225
/* *INDENT-ON* */
226
226
}
227
227
0 commit comments