mirror of
https://github.com/clap-rs/clap
synced 2024-12-16 15:52:44 +00:00
19 lines
319 B
Rust
19 lines
319 B
Rust
#[macro_use]
|
|
extern crate clap;
|
|
|
|
use clap::{AppSettings, Clap};
|
|
|
|
#[derive(Clap, Debug)]
|
|
#[clap(
|
|
name = "no_version",
|
|
about = "",
|
|
version = "",
|
|
author = "",
|
|
raw(global_settings = "&[AppSettings::DisableVersion]")
|
|
)]
|
|
struct Opt {}
|
|
|
|
fn main() {
|
|
let opt = Opt::parse();
|
|
println!("{:?}", opt);
|
|
}
|