You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
distant/src/lib.rs

15 lines
287 B
Rust

mod opt;
mod subcommand;
pub use opt::Opt;
pub fn init_logging(opt: &opt::CommonOpt) {
stderrlog::new()
.module("distant")
.quiet(opt.quiet)
.verbosity(opt.verbose as usize)
.timestamp(stderrlog::Timestamp::Off)
.init()
.unwrap();
}