clap/examples/no_version.rs
Guillaume P de7fc7a08e fmt
2018-06-05 18:16:17 +02:00

20 lines
367 B
Rust

#[macro_use]
extern crate structopt;
use structopt::clap::AppSettings;
use structopt::StructOpt;
#[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);
}