Update choice help document

This commit is contained in:
Ryan Geary 2019-09-10 22:14:42 -04:00
parent 121d2f9d5a
commit 8a430e0fdf

View file

@ -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>,
}