From 8a430e0fdfddab9f0bf8e0fde4c42b9c576d2f32 Mon Sep 17 00:00:00 2001 From: Ryan Geary Date: Tue, 10 Sep 2019 22:14:42 -0400 Subject: Update choice help document --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1069328..8a27680 100644 --- a/src/main.rs +++ b/src/main.rs @@ -72,8 +72,10 @@ struct Opt { #[structopt(short, long, parse(from_os_str))] input: Option, - /// Fields to print - #[structopt(required = true, min_values = 1, parse(try_from_str = parse_choice))] + /// Fields to print. Either x, x:, :y, or x:y, where x and y are integers, colons indicate a + /// range, and an empty field on either side of the colon continues to the beginning or end of + /// the line. + #[structopt(required = true, min_values = 1, parse(try_from_str = Choice::parse_choice))] choice: Vec, } -- cgit v1.2.3