Skip to content

Commit

Permalink
docs(from_usage): explains new usage strings with multiple values
Browse files Browse the repository at this point in the history
  • Loading branch information
kbknapp committed May 5, 2015
1 parent 3d58197 commit 05476fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/args/arg.rs
Expand Up @@ -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 <val> <val>`)
/// they are counted and used as the number of values. If they are different, they are used
/// as the value names (i.e. `--opt <file> <mode>`). 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
///
Expand Down

0 comments on commit 05476fc

Please sign in to comment.