diff dropbearkey.c @ 94:c85c88500ea6

DEBUG_TRACE now only triggers with -v on the cmdline
author Matt Johnston <matt@ucc.asn.au>
date Wed, 18 Aug 2004 15:48:25 +0000
parents 0bf5cebe622c
children 0cfba3034be5
line wrap: on
line diff
--- a/dropbearkey.c	Wed Aug 18 12:42:21 2004 +0000
+++ b/dropbearkey.c	Wed Aug 18 15:48:25 2004 +0000
@@ -75,8 +75,11 @@
 #endif
 					"-f filename	Use filename for the secret key\n"
 					"-s bits	Key size in bits, should be a multiple of 8 (optional)\n"
-					"-y		Just print the publickey and fingerprint for the\n		private key in <filename>.\n",
-					progname);
+					"-y		Just print the publickey and fingerprint for the\n		private key in <filename>.\n"
+#ifdef DEBUG_TRACE
+					"-v		verbose\n"
+#endif
+					,progname);
 }
 
 #if defined(DBMULTI_dropbearkey) || !defined(DROPBEAR_MULTI)
@@ -127,6 +130,11 @@
 					printhelp(argv[0]);
 					exit(EXIT_SUCCESS);
 					break;
+#ifdef DEBUG_TRACE
+				case 'v':
+					debug_trace = 1;
+					break;
+#endif
 				default:
 					fprintf(stderr, "Unknown argument %s\n", argv[i]);
 					printhelp(argv[0]);