mirror of
https://github.com/clap-rs/clap
synced 2025-01-23 01:45:00 +00:00
16 lines
279 B
Rust
16 lines
279 B
Rust
//! How to completely remove version.
|
|
|
|
use clap::{AppSettings, Clap};
|
|
|
|
#[derive(Clap, Debug)]
|
|
#[clap(
|
|
name = "no_version",
|
|
no_version,
|
|
global_setting = AppSettings::DisableVersion
|
|
)]
|
|
struct Opt {}
|
|
|
|
fn main() {
|
|
let opt = Opt::parse();
|
|
println!("{:?}", opt);
|
|
}
|