Put spin debug under -vv flag, and add to mosh-client
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user