Replies: 1 comment 3 replies
-
So if I understood correctly: after The challenge for clap with this
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to replace a legacy CLI app with Rust + clap, but I got stuck and can't wrap my head around the issue:
The original app parses everything after '--' as an arbitrary length list of struct S:
E.g.,
app -- x 1000 -c 3.2 y 2000 z 500
would parse as three elements.Seems simple enough, but no matter what I try, I can't make this work in clap. My best guess so far:
This doesn't compile, but I can't make head or tails of the error:
Help?
Beta Was this translation helpful? Give feedback.
All reactions