1
0
mirror of https://github.com/Tim-Paik/neutauri.git synced 2024-10-12 23:29:41 +00:00

added config

This commit is contained in:
2022-01-28 00:59:12 +08:00
parent 561e19e732
commit 2b0084adf6
5 changed files with 178 additions and 20 deletions

View File

@ -4,3 +4,4 @@ name = "neutauri_bundler"
version = "0.1.0"
[dependencies]
clap = {version = "3.0", features = ["derive"]}

View File

@ -1,3 +1,15 @@
fn main() {
println!("Hello, world!");
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() {
let args = Args::parse();
println!("{}", args.config);
}