We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I propose support for explicit default values for skipped fields:
#[derive(StructOpt)] pub struct Opt { #[structopt(long, short)] number: u32, #[structopt(skip = "key")] k: String, #[structopt(skip = &[1, 2, 3])] v: Vec<u32>, }
The syntax is skip = expr, the field will be assigned with (expr).into() instead of Default::default().
skip = expr
(expr).into()
Default::default()
The text was updated successfully, but these errors were encountered:
OK for such a PR
Sorry, something went wrong.
skip = value
Successfully merging a pull request may close this issue.
I propose support for explicit default values for skipped fields:
The syntax is
skip = expr
, the field will be assigned with(expr).into()
instead ofDefault::default()
.The text was updated successfully, but these errors were encountered: