// Copyright (c) 2017 Guillaume Pinot // // This work is free. You can redistribute it and/or modify it under // the terms of the Do What The Fuck You Want To Public License, // Version 2, as published by Sam Hocevar. See the COPYING file for // more details. extern crate structopt; #[macro_use] extern crate structopt_derive; #[macro_use] extern crate clap; use structopt::StructOpt; #[derive(StructOpt, Default)] struct Opt { i: bool, } fn main() { let opt = Opt::from_args(); println!("i = {}", opt.i); }