From 16522a9653ba21c795e570232e2085eaf6e1a0af Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 2 Jun 2016 22:23:20 -0400 Subject: make client less verbose by defauilt --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index dd6f7e9..08cd67e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ fn main() { let mut opts = Options::new(); opts.optflag("h", "help", "print this help menu"); - //opts.optflag("v", "verbose", "more debugging messages"); + opts.optflag("v", "verbose", "more debugging messages"); opts.optflag("r", "recursive", "whether to recursively transfer files (directory)"); opts.optflag("", "no-crypto", "sends data in the clear (no crypto or verification)"); @@ -51,7 +51,7 @@ fn main() { Err(f) => { println!("{}", f.to_string()); usage(opts); exit(-1); } }; - //let verbose: bool = matches.opt_present("v"); + let verbose: bool = matches.opt_present("v"); let recursive: bool = matches.opt_present("r"); let no_crypto: bool = matches.opt_present("no-crypto"); @@ -87,7 +87,7 @@ fn main() { let spl: Vec<&str> = srcfile.split(":").collect(); let host = spl[0]; let remote_file = spl[1]; - ret = client::run_client(host, local_file, remote_file, recursive, is_recv, no_crypto); + ret = client::run_client(host, local_file, remote_file, recursive, is_recv, no_crypto, verbose); }, (false, true) => { let is_recv = false; @@ -95,7 +95,7 @@ fn main() { let spl: Vec<&str> = destfile.split(":").collect(); let host = spl[0]; let remote_file = spl[1]; - ret = client::run_client(host, local_file, remote_file, recursive, is_recv, no_crypto); + ret = client::run_client(host, local_file, remote_file, recursive, is_recv, no_crypto, verbose); }, } -- cgit v1.2.3