diff options
author | Ryan Geary <rtgnj42@gmail.com> | 2019-09-10 22:14:42 -0400 |
---|---|---|
committer | Ryan Geary <rtgnj42@gmail.com> | 2019-09-10 22:14:42 -0400 |
commit | 8a430e0fdfddab9f0bf8e0fde4c42b9c576d2f32 (patch) | |
tree | 4726e72b34bd4c2b6781ba44b698ee40c07f4bee | |
parent | 121d2f9d5a6f105f7caa2dd3526e4b11f10c8cac (diff) |
Update choice help document
-rw-r--r-- | src/main.rs | 6 |
1 files 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<PathBuf>, - /// 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<Choice>, } |