improve main a bit
This commit is contained in:
parent
f0ea348ae7
commit
39175412ba
1 changed files with 3 additions and 4 deletions
|
@ -1,6 +1,5 @@
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use cli::Commands;
|
use std::{path::PathBuf, process::exit};
|
||||||
use std::{collections::HashMap, path::PathBuf, process::exit};
|
|
||||||
mod build;
|
mod build;
|
||||||
mod cli;
|
mod cli;
|
||||||
mod data;
|
mod data;
|
||||||
|
@ -10,12 +9,12 @@ fn main() {
|
||||||
|
|
||||||
let args = cli::Cli::parse();
|
let args = cli::Cli::parse();
|
||||||
|
|
||||||
let config = args.config;
|
let config_path: PathBuf = args.config;
|
||||||
|
|
||||||
if args.print_example_config {
|
if args.print_example_config {
|
||||||
println!("{}", data::example_config());
|
println!("{}", data::example_config());
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
println!("Config: {}", config.to_str().unwrap())
|
println!("Config path: {}", config_path.to_str().unwrap())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue