You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
326 B

//! How to completely remove version.
use structopt::clap::AppSettings;
use structopt::StructOpt;
#[derive(StructOpt, Debug)]
#[structopt(
name = "no_version",
no_version,
global_settings = &[AppSettings::DisableVersion]
)]
struct Opt {}
fn main() {
let opt = Opt::from_args();
println!("{:?}", opt);
}