Skip to content

Using number_of_values requires nightly #15

New issue

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

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

Already on GitHub? # to your account

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.

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

No branches or pull requests

2 participants