-
I am referring to this documentation to write a CLI program using the Derive API style. I found wild for handling glob patterns, but it only provides examples in the builder style like this: let matches = clap::App::new("your_app")
.arg(…)
.arg(…)
.arg(…)
// .get_matches(); change to:
.get_matches_from(wild::args()); I'm wondering if there's a simple way to use the |
Beta Was this translation helpful? Give feedback.
Answered by
epage
Mar 5, 2025
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
OlingCat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wild
provides a custom set of arguments. When you derive, it is for theParser
trait. Looking on that trait, you will seeParser::parse_from
which mirrorsget_matches_from
and should work withwild
.