Skip to content

Adding an update_from_args/matches() to clap_derive #1836

Answered by CreepySkeleton
lu-zero asked this question in Q&A
Discussion options

You must be logged in to vote

add/remove fields from the struct

Which fields are you referring to, exactly? How is derive supposed to know which fields to update and which fields to keep as is?

Could you please write an example including the struct, the app, the input, and the expected result from update_from_matches? To make sure we are not speaking past each other.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@lu-zero
Comment options

Comment options

You must be logged in to vote
3 replies
@lu-zero
Comment options

@CreepySkeleton
Comment options

@lu-zero
Comment options

Answer selected by kbknapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants