add logging crate to reduce unnecessary stdout spam
This commit is contained in:
parent
3023576fec
commit
1e5d328ab4
4 changed files with 22 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
use clap::Parser;
|
||||
|
||||
#[cfg(feature = "log")]
|
||||
use simple_logger;
|
||||
|
||||
#[derive(Debug, clap::Parser)]
|
||||
#[command(version, about, long_about = None)]
|
||||
struct Args {
|
||||
|
|
@ -49,6 +52,9 @@ fn handle_command(args: &Args, issues_dir: &std::path::Path) -> anyhow::Result<(
|
|||
}
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
#[cfg(feature = "log")]
|
||||
simple_logger::SimpleLogger::new().env().init().unwrap();
|
||||
|
||||
let args: Args = Args::parse();
|
||||
// println!("{:?}", args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue