mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 23:32:32 +00:00
17 lines
358 B
Rust
17 lines
358 B
Rust
|
#[macro_use]
|
||
|
extern crate structopt;
|
||
|
|
||
|
use structopt::StructOpt;
|
||
|
use structopt::clap::AppSettings;
|
||
|
|
||
|
#[derive(StructOpt, Debug)]
|
||
|
#[structopt(name = "no_version", about = "", version = "", author = "",
|
||
|
raw(global_settings = "&[AppSettings::DisableVersion]"))]
|
||
|
struct Opt {
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let opt = Opt::from_args();
|
||
|
println!("{:?}", opt);
|
||
|
}
|