From 05476fc61cd1e5f4a4e750d258c878732a3a9c64 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Mon, 4 May 2015 23:41:04 -0400 Subject: [PATCH] docs(from_usage): explains new usage strings with multiple values --- src/args/arg.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/args/arg.rs b/src/args/arg.rs index 2d18b7789fa..ebeb071f18e 100644 --- a/src/args/arg.rs +++ b/src/args/arg.rs @@ -196,6 +196,10 @@ impl<'n, 'l, 'h, 'g, 'p, 'r> Arg<'n, 'l, 'h, 'g, 'p, 'r> { /// 7. The index of a positional argument will be the next available index (you don't need to /// specify one) i.e. all arguments without a `short` or `long` will be treated as /// positional + /// 8. If the value names are all the same, and their multiple ones (i.e `-o `) + /// they are counted and used as the number of values. If they are different, they are used + /// as the value names (i.e. `--opt `). In this case, if no name was specified + /// prior to the value names, the long is used as the name by which to access the argument. /// /// # Example ///