summaryrefslogtreecommitdiffstats
path: root/src/opt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/opt.rs')
-rw-r--r--src/opt.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opt.rs b/src/opt.rs
index d328191..94f1236 100644
--- a/src/opt.rs
+++ b/src/opt.rs
@@ -32,6 +32,10 @@ pub struct Opt {
#[structopt(short, long)]
pub non_greedy: bool,
+ /// Index from 1 instead of 0
+ #[structopt(long)]
+ pub one_indexed: bool,
+
/// Specify output field separator
#[structopt(short, long, parse(from_str = parse::output_field_separator))]
pub output_field_separator: Option<String>,