use structopt::StructOpt; #[derive(Debug, Clone, StructOpt)] pub(crate) struct Cli { #[structopt(long, short, parse(from_occurrences))] pub(crate) verbosity: u8, #[structopt(long, number_of_values = 1, parse(try_from_str = shell_words::split))] pub(crate) extra_arg: Vec>, #[structopt(subcommand)] pub(crate) command: Command, } #[derive(Debug, Clone, StructOpt)] pub(crate) enum Command { Generate { file: String }, }