summaryrefslogtreecommitdiffstats
path: root/src/opt.rs
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-03-17 13:56:25 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-04-01 13:15:32 -0400
commite78ea2783cf99de0d4dd430af403e88fc1edbf0e (patch)
tree0137966dc93ca74e305ca6e3234d1935e8463a72 /src/opt.rs
parenta90a5cb74273eba36357a25096e4bd7840d19cb8 (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.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opt.rs b/src/opt.rs
index 9704d4f..77ba9fd 100644
--- a/src/opt.rs
+++ b/src/opt.rs
@@ -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)]