]> git.proxmox.com Git - rustc.git/blame - vendor/structopt/examples/no_version.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / vendor / structopt / examples / no_version.rs
CommitLineData
f20569fa
XL
1//! How to completely remove version.
2
3use structopt::clap::AppSettings;
4use structopt::StructOpt;
5
6#[derive(StructOpt, Debug)]
7#[structopt(
8 name = "no_version",
9 no_version,
10 global_settings = &[AppSettings::DisableVersion]
11)]
12struct Opt {}
13
14fn main() {
15 let opt = Opt::from_args();
16 println!("{:?}", opt);
17}