1 2 3 4 5 6 7 8 9 10 11 12 13
use structopt_derive::*; #[derive(Debug,StructOpt)] #[structopt(name = "csv_challenge",about="An example of StructOpt usage.")] pub struct Opt{ #[structopt(help = "Input File")] pub input: String, #[structopt(help = "Column Name")] pub column_name: String, #[structopt(help = "Replacement Column Name")] pub replacement: String, #[structopt(help = "Output file. stdout if not present")] pub output: Option<String>, }