csv_challenge/opt.rs
1use structopt_derive::*;
2
3#[derive(StructOpt, Debug)]
4#[structopt(name = "csv_challenge", about = "An example of StructOpt usage.")]
5pub struct Opt {
6 /// Needed parameter, the first on the command line.
7 // #[structopt(short = "v", long = "verbose")]
8 // pub verbosity: u64,
9 #[structopt(help = "Input file")]
10 pub input: String,
11 #[structopt(help = "Column Name")]
12 pub column_name: String,
13 #[structopt(help = "Replacement Column Name")]
14 pub replacement: String,
15 #[structopt(help = "Output file, stdout if not present")]
16 pub output: Option<String>,
17}