Skip to content

How to print full help message manually? #2380

Discussion options

You must be logged in to vote

I guess you are new to rust. The error messages explains it pretty clearly. You moved the value on line 14 and are trying to access it on line 20. You would need to clone on line 14 to make sure you don't move the value.

let matches = app.clone().get_matches();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0x7FFFFFFFFFFFFFFF
Comment options

Answer selected by pksunkara
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