added config

This commit is contained in:
2022-01-28 00:59:12 +08:00
parent 561e19e732
commit 2b0084adf6
5 changed files with 177 additions and 19 deletions
+13 -1
View File
@@ -1,3 +1,15 @@
use clap::Parser;
/// Simple program to greet a person
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
struct Args {
/// Path to Congfig
#[clap(short, long)]
config: String,
}
fn main() {
println!("Hello, world!");
let args = Args::parse();
println!("{}", args.config);
}