improve main a bit

This commit is contained in:
askiiart 2025-05-15 21:28:48 -05:00
parent f0ea348ae7
commit 39175412ba
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -1,6 +1,5 @@
use clap::Parser;
use cli::Commands;
use std::{collections::HashMap, path::PathBuf, process::exit};
use std::{path::PathBuf, process::exit};
mod build;
mod cli;
mod data;
@ -10,12 +9,12 @@ fn main() {
let args = cli::Cli::parse();
let config = args.config;
let config_path: PathBuf = args.config;
if args.print_example_config {
println!("{}", data::example_config());
exit(0);
}
println!("Config: {}", config.to_str().unwrap())
println!("Config path: {}", config_path.to_str().unwrap())
}