question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with map fields when clustered short options are disallowed

See original GitHub issue

Description

When clustered short options are disallowed with CommandLine.setPosixClusteredShortOptionsAllowed(false)

specifying arguments for map fields as follows -Pmyprop=myvalue

fails with the exception picocli.CommandLine$UnmatchedArgumentException: Unknown option: -Pmyprop=myvalue

The space is now required between -P and the key-value pair. -P myprop=myvalue //works

Is this the expected behaviour? IMO, map fields are different from other fields, and it would be useful to have the support for the former even when clustered short options are not allowed.

Version 3.3.0

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
remkopcommented, Sep 21, 2018

@MaryamZi No worries, glad to hear the current behaviour is ok.

Good idea to clarify the docs. I will add a note to the https://picocli.info/#_posix_clustered_short_options section.

0reactions
MaryamZicommented, Sep 21, 2018

@remkop sorry about the delay in responding. The current behaviour is OK, just wanted to clarify if this was the expected behaviour.

Should we maybe include this in the documentation too, since all possible ways of specification are mentioned in the example?

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Picocli: Is it possible to attach option to parameter when ...
Picocli has an option to switch off clustered short options with CommandLine.setPosixClusteredShortOptionsAllowed(false) . However, in that ...
Read more >
Troubleshoot connector and format issues in mapping data flows
Learn how to troubleshoot data flow problems related to connector and format in Azure Data Factory.
Read more >
cluster - Splunk Documentation
The cluster command groups events together based on how similar they are to each other. Unless you specify a different field, cluster groups...
Read more >
ignore_malformed | Elasticsearch Guide [8.5] | Elastic
Trying to index the wrong data type into a field throws an exception by default, and rejects the whole document. The ignore_malformed parameter,...
Read more >
Field formats check | Web App Firewall
The Field Formats check verifies the data that users send to your websites in web forms. It examines both the length and type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found