I am writing a cli app with StructOpt crate. And I want to use two confilct options(-s and -i), that means user can just pass one option(-s or -i) at any one time. How can I write?
#[derive(StructOpt, Debug)]
/// mitool, pass `-h`
struct Cli {
/// translate hex string
#[structopt(short, long)]
string: String,
/// translate hex strings in a file
#[structopt(short, long, parse(from_os_str))]
input: PathBuf,
}