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

Using number_of_values requires nightly #15

Closed
SpaceManiac opened this issue Jun 23, 2017 · 1 comment
Closed

Using number_of_values requires nightly #15

SpaceManiac opened this issue Jun 23, 2017 · 1 comment

Comments

@SpaceManiac
Copy link

I see that structopt-derive passes along attributes to the Arg builder by default. For arguments which accept non-string values, such as number_of_values, nightly is required:

  • #[structopt(..., number_of_values="1")] is a type mismatch (expected u64, found &str)
  • #[structopt(..., number_of_values=1)] requires nightly and #![feature(attr_literals)]

It doesn't seem like attr_literals is on a quick path to stabilization, so some other form of support may be warranted.

@TeXitoi
Copy link
Owner

TeXitoi commented Jun 23, 2017

Thanks for reporting. This issue is tracked in #4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants