Put spin debug under -vv flag, and add to mosh-client

This commit is contained in:
John Hood
2016-10-29 01:41:21 -04:00
parent f89f1da0b5
commit 9ffbeddbc8
13 changed files with 47 additions and 23 deletions
+6 -2
View File
@@ -99,6 +99,7 @@ int mosh_main( int argc, char *argv[] )
int main( int argc, char *argv[] )
#endif
{
unsigned int verbose = 0;
/* For security, make sure we don't dump core */
Crypto::disable_dumping_core();
@@ -107,7 +108,7 @@ int main( int argc, char *argv[] )
/* Get arguments */
int opt;
while ( (opt = getopt( argc, argv, "#:c" )) != -1 ) {
while ( (opt = getopt( argc, argv, "#:cv" )) != -1 ) {
switch ( opt ) {
case '#':
// Ignore the original arguments to mosh wrapper
@@ -116,6 +117,9 @@ int main( int argc, char *argv[] )
print_colorcount();
exit( 0 );
break;
case 'v':
verbose++;
break;
default:
usage( argv[ 0 ] );
exit( 1 );
@@ -168,7 +172,7 @@ int main( int argc, char *argv[] )
bool success = false;
try {
STMClient client( ip, desired_port, key, predict_mode );
STMClient client( ip, desired_port, key, predict_mode, verbose );
client.init();
try {