Compare commits
No commits in common. "5d14b50531a7172fcb22b947eb9f428e4da0e664" and "b861469319ac962394d63b40f8ac97488c157e1a" have entirely different histories.
5d14b50531
...
b861469319
2 changed files with 6 additions and 10 deletions
|
@ -45,10 +45,10 @@ pub(super) async fn format_status(
|
|||
Ok(format!(
|
||||
"{}{}",
|
||||
ancestor,
|
||||
if thread.is_empty() {
|
||||
String::default()
|
||||
} else {
|
||||
if !thread.is_empty() {
|
||||
format!("\n{}", thread)
|
||||
} else {
|
||||
String::default()
|
||||
}
|
||||
))
|
||||
}
|
||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -35,8 +35,8 @@ struct Config {
|
|||
output_dir: Option<String>,
|
||||
#[arg(required = true)]
|
||||
date: String,
|
||||
#[arg(short, long, action = clap::ArgAction::Count)]
|
||||
verbose: u8,
|
||||
#[arg(short, long)]
|
||||
verbose: bool,
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
@ -49,11 +49,7 @@ async fn main() -> Result<()> {
|
|||
output_dir,
|
||||
} = Config::parse();
|
||||
|
||||
let level = match verbose {
|
||||
0 => "off",
|
||||
1 => "debug",
|
||||
_ => "trace",
|
||||
};
|
||||
let level = if verbose { "debug" } else { "off" };
|
||||
env::set_var("RUST_LOG", format!("{}={}", module_path!(), level));
|
||||
env_logger::init();
|
||||
|
||||
|
|
Loading…
Reference in a new issue