diff common-runopts.c @ 946:17d874ae93a1

Add '-V' for version -h should exit with success Update manpages
author Matt Johnston <matt@ucc.asn.au>
date Sun, 27 Jul 2014 22:06:26 +0800
parents 220f55d540ae
children f92eb625c48d
line wrap: on
line diff
--- a/common-runopts.c	Sat Jul 26 10:18:55 2014 +0800
+++ b/common-runopts.c	Sun Jul 27 22:06:26 2014 +0800
@@ -106,3 +106,8 @@
 }
 #endif
 
+void print_version(const char* name) {
+	fprintf(stderr, "Dropbear %s v%s\n", name, DROPBEAR_VERSION);
+}
+
+