diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2020-06-17 19:06:28 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2020-06-17 19:10:48 -0400 |
commit | 448b12bb842e0382e4042eb4f2e720d8eaab84f9 (patch) | |
tree | 8e0cbc9cac9898c35d97662b48fde9de24c81471 /src/opt.rs | |
parent | 0e422090d33da2f320a77fd128554635ba7aacba (diff) |
Add backslash escape parsing (#26)feature/handle-escapes
Diffstat (limited to 'src/opt.rs')
-rw-r--r-- | src/opt.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,6 +2,7 @@ use std::path::PathBuf; use structopt::StructOpt; use crate::choice::Choice; +use crate::escape; use crate::parse; #[derive(Debug, StructOpt)] @@ -37,7 +38,7 @@ pub struct Opt { pub one_indexed: bool, /// Specify output field separator - #[structopt(short, long, parse(from_str = parse::output_field_separator))] + #[structopt(short, long, parse(from_str = escape::process_escapes))] pub output_field_separator: Option<String>, /// Fields to print. Either a, a:b, a..b, or a..=b, where a and b are integers. The beginning |