How to print full help message manually? #2380
Answered
by
pksunkara
0x7FFFFFFFFFFFFFFF
asked this question in
Q&A
-
I have the following program and I want to print the full help message for some logic branches.
When I run the program using
I played around with the code but can't fix the issue. Could anyone help me to take a look? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
pksunkara
Mar 3, 2021
Replies: 1 comment 1 reply
-
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(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
pksunkara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.