extern crate structopt;
#[macro_use]
extern crate structopt_derive;
use structopt::StructOpt;
#[derive(StructOpt, Debug)]
#[structopt(name = "example", about = "An example of StructOpt usage.")]
struct Opt {
#[structopt(short = "d", long = "debug", help = "Activate debug mode")]
debug: bool,
#[structopt(short = "s", long = "speed", help = "Set speed", default_value = "42")]
speed: f64,
#[structopt(help = "Input file")]
input: String,
#[structopt(help = "Output file, stdout if not present")]
output: Option<String>,
}
fn main() {
let opt = Opt::from_args();
println!("{:?}", opt);
}