Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add named valued to from_usage methods #98

Closed
kbknapp opened this issue May 4, 2015 · 0 comments
Closed

Add named valued to from_usage methods #98

kbknapp opened this issue May 4, 2015 · 0 comments
Assignees
Labels
C-enhancement Category: Raise on the bar on expectations
Milestone

Comments

@kbknapp
Copy link
Member

kbknapp commented May 4, 2015

To allow something like

Arg::from_usage("[myopt] -o --opt <mode> <file> 'some help text'")

This would parse as
Name: myopt
Short: o
Long: opt
Values: <mode> <file>
Multiple: false
Required: false
Number of Values: 2

Some items to be determined are how to parse when an explicit name does not precede the values (Required true, or false, use the first value for determining? Use Long as name? etc.)

@kbknapp kbknapp added the C-enhancement Category: Raise on the bar on expectations label May 4, 2015
@kbknapp kbknapp self-assigned this May 4, 2015
@kbknapp kbknapp added this to the 1.0 Release milestone May 4, 2015
@kbknapp kbknapp closed this as completed in ad55748 May 5, 2015
kbknapp added a commit that referenced this issue May 5, 2015
kbknapp added a commit that referenced this issue May 5, 2015
…sage string

Allows new usage strings with value names or number of values. If the
names are consecutive, they are counted to represent the number of
values (if they all have the same name), or if their names are different
they are used as value names.

Closes #98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Raise on the bar on expectations
Projects
None yet
Development

No branches or pull requests

1 participant