Skip to content

Support quoted map keys with embedded '=' characters #594

@pubudu91

Description

@pubudu91

I have the following map:

@CommandLine.Option(names = "-e")
private Map<String, String> runtimeParams = new HashMap<>();

If I give the key/val pair as follows, it splits the pair at the first "=" character it encounters.
$ <cmd> -e a=b=c=foo

Is there a way to indicate to the parser from where to split this pair? For example, I was expecting something like the following to work:
$ <cmd> -e "a=b=c"=foo

In both of the above cases, the pair is split as a and b=c=foo.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions