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:
@ -4,3 +4,4 @@ name = "neutauri_bundler"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
clap = {version = "3.0", features = ["derive"]}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user