clap/examples/no_version.rs

17 lines
358 B
Rust
Raw Normal View History

2018-03-12 11:36:21 +00:00
#[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);
}