multisol_structs/cli.rs
1use std::path::PathBuf;
2
3use structopt::StructOpt;
4
5#[derive(StructOpt)]
6#[structopt(
7 name = "multisol",
8 about = "Command-line application for verifying Solidity contracts on Etherscan."
9)]
10pub struct Cli {
11 /// The path to the Solidity contract to look for
12 #[structopt(parse(from_os_str))]
13 pub contract_path: PathBuf,
14 /// Disable the Solidity optimizer, which is enabled by default
15 #[structopt(long, parse(try_from_str))]
16 pub no_optimization: Option<bool>,
17}