diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2019-09-06 11:54:47 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2019-09-06 11:54:47 -0400 |
commit | b7c14b9c2df95cbbac4ee1e945058a3239b8d4f3 (patch) | |
tree | c5d48ec852b520aab8ef33a2d4fcd4f05cf19466 | |
parent | 3fdd3da5077335e61f33482c3c6e5db244059240 (diff) |
Take one range
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index be11feb..9d0d173 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,6 +15,10 @@ enum Choice { #[derive(Debug, StructOpt)] #[structopt(name = "choose", about = "`choose` sections from each line of files")] struct Opt { + /// Capture range of fields + #[structopt(parse(try_from_str = parse_range))] + range: Range, + /// Specify field separator other than whitespace #[structopt(short, long)] field_separator: Option<String>, |