diff --git a/examples/no_version.rs b/examples/no_version.rs new file mode 100644 index 00000000..97ef5c4f --- /dev/null +++ b/examples/no_version.rs @@ -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); +}