1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use std::path::PathBuf;

use structopt::StructOpt;

#[derive(StructOpt)]
pub struct Cli {
    /// The path to the Solidity contract to look for
    #[structopt(parse(from_os_str))]
    pub contract_path: PathBuf,
    /// Disable the Solidity optimizer, which is enabled by default
    #[structopt(long, parse(try_from_str))]
    pub no_optimization: Option<bool>,
}