mirror of https://github.com/chipsenkbeil/distant
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.
15 lines
287 B
Rust
15 lines
287 B
Rust
3 years ago
|
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();
|
||
|
}
|