Issue with map fields when clustered short options are disallowed
See original GitHub issueDescription
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:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
@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!