summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorRyan Geary <rtgnj42@gmail.com>2019-09-06 11:52:18 -0400
committerRyan Geary <rtgnj42@gmail.com>2019-09-06 11:52:18 -0400
commit34e5d13fb32bb7038cc2fdc279bab155f2421563 (patch)
tree51e97d93c9fe6b0eaa52b2af8b78715c00b0cb50 /src/main.rs
parent4596796a14f3d6320033967475088bc1afb81737 (diff)
Define Range and Choice types
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index e505d6b..482fd0f 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,16 @@
use std::fs::File;
use std::io::{self, BufRead, BufReader, Read};
use std::path::PathBuf;
+use std::num::ParseIntError;
use structopt::StructOpt;
+use regex::Regex;
+
+type Range = (Option<u32>, Option<u32>);
+
+enum Choice {
+ One(u32),
+ Range
+}
#[derive(Debug, StructOpt)]
#[structopt(name = "choose", about = "`choose` sections from each line of files")]