2018-03-12 11:36:21 +00:00
|
|
|
#[macro_use]
|
2018-07-02 18:45:17 +00:00
|
|
|
extern crate clap;
|
2018-03-12 11:36:21 +00:00
|
|
|
|
2018-07-02 18:45:17 +00:00
|
|
|
use clap::{AppSettings, Clap};
|
2018-03-12 11:36:21 +00:00
|
|
|
|
2018-07-02 18:45:17 +00:00
|
|
|
#[derive(Clap, Debug)]
|
|
|
|
#[clap(
|
2018-06-05 16:16:17 +00:00
|
|
|
name = "no_version",
|
|
|
|
about = "",
|
|
|
|
version = "",
|
|
|
|
author = "",
|
|
|
|
raw(global_settings = "&[AppSettings::DisableVersion]")
|
|
|
|
)]
|
2018-05-21 14:54:22 +00:00
|
|
|
struct Opt {}
|
2018-03-12 11:36:21 +00:00
|
|
|
|
|
|
|
fn main() {
|
2018-07-02 18:45:17 +00:00
|
|
|
let opt = Opt::parse();
|
2018-03-12 11:36:21 +00:00
|
|
|
println!("{:?}", opt);
|
|
|
|
}
|