Replies: 2 comments
-
At the moment, we do not have env-specific parsing. In master (soon to be 3.2), we have added All of those are for sharing between arguments and env. As for adding env specific parsing in the future, I think I'd like to wait on moving env support out of the core of clap (see #3476). This will more easily allow env support to evolve on its own without adding to the core complexity of clap or its size. |
Beta Was this translation helpful? Give feedback.
-
Note that this would be very useful for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello I'm trying to use environment variable or cli flags by specifying a field in my struct like this:
But in the environment variables I would like to have a comma separated list of urls to specify several urls. Do you have a feature to provide our own env parser from a string to convert it to the right type ?
What could be the best solution in that case ?
Beta Was this translation helpful? Give feedback.
All reactions