Add no_version example

This commit is contained in:
Guillaume P 2018-03-12 12:36:21 +01:00
parent b043260eb3
commit 495cc1f5e3

16
examples/no_version.rs Normal file
View file

@ -0,0 +1,16 @@
#[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);
}