Replies: 2 comments 2 replies
-
So you want to be able to add a derive/annotations for a foreign CLI so you can convert the struct to the This sounds like #3131 and #3131 (comment) steps through some of the challenges. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, clap (and basically any command line parsers) parses command line arguments (list of strings) into rust data types.
I found that I also needs the other direction - I have a rust data type, and I want to turn it into a list of strings (of course, when parsed, gives back the rust data type). The purpose is programmatically and SAFELY generate bash command to be executed somewhere else (outside of the "unparsing"/"serializing" program).
Anyone else find this feature useful?
Beta Was this translation helpful? Give feedback.
All reactions