Merge pull request 'Use Logging Crate To Avoid STDOUT Spam' (#5) from 03/logging into main

Reviewed-on: #5
This commit is contained in:
seb 2025-07-07 12:45:33 -06:00
commit 343e43a762
4 changed files with 22 additions and 2 deletions

View file

@ -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 {
@ -85,6 +88,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);