Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support property arguments #72

Closed
jdegoes opened this issue Nov 27, 2020 · 0 comments
Closed

Support property arguments #72

jdegoes opened this issue Nov 27, 2020 · 0 comments

Comments

@jdegoes
Copy link
Member

jdegoes commented Nov 27, 2020

Property arguments are options (which may be repeated) whose values are actually key/value pairs.

Example syntax:

-Dkey=value
-D key1=value key2=value

To support these, we probably need a new Options.Map which parses options of the specified name (-D in these examples) into a map, where the key and value types could be PrimType.

kitlangton pushed a commit to kitlangton/zio-cli that referenced this issue Oct 29, 2021
kitlangton added a commit that referenced this issue Oct 29, 2021
* fix nested help docs

* #72: Added Options.map to support property arguments -> Options[Map[String, String]]

* fix test

Co-authored-by: Javier Goday <jgoday@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants