diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2020-03-17 13:56:25 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2020-04-01 13:15:32 -0400 |
commit | e78ea2783cf99de0d4dd430af403e88fc1edbf0e (patch) | |
tree | 0137966dc93ca74e305ca6e3234d1935e8463a72 /src/opt.rs | |
parent | a90a5cb74273eba36357a25096e4bd7840d19cb8 (diff) |
Add negative choice and parsing tests
Allow negative ranges as long as they aren't reversed too
Allow reversed negative ranges iff both indices are negative
Diffstat (limited to 'src/opt.rs')
-rw-r--r-- | src/opt.rs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6,6 +6,7 @@ use crate::config::Config; #[derive(Debug, StructOpt)] #[structopt(name = "choose", about = "`choose` sections from each line of files")] +#[structopt(setting = structopt::clap::AppSettings::AllowLeadingHyphen)] pub struct Opt { /// Specify field separator other than whitespace #[structopt(short, long)] |