summaryrefslogtreecommitdiffstats
path: root/src/opt.rs
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2020-06-17 19:06:28 -0400
committerRyan Geary <rtgnj42@gmail.com>2020-06-17 19:10:48 -0400
commit448b12bb842e0382e4042eb4f2e720d8eaab84f9 (patch)
tree8e0cbc9cac9898c35d97662b48fde9de24c81471 /src/opt.rs
parent0e422090d33da2f320a77fd128554635ba7aacba (diff)
Add backslash escape parsing (#26)feature/handle-escapes
Diffstat (limited to 'src/opt.rs')
-rw-r--r--src/opt.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/opt.rs b/src/opt.rs
index 94f1236..1eb08ee 100644
--- a/src/opt.rs
+++ b/src/opt.rs
@@ -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