You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Joerg Budischewski (Jira)" <ji...@apache.org> on 2025/07/21 09:59:00 UTC
[jira] [Commented] (CLI-268) No getParsedOptionValue for options with multiple values
[ https://issues.apache.org/jira/browse/CLI-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18008673#comment-18008673 ]
Joerg Budischewski commented on CLI-268:
----------------------------------------
this is a duplicate to above issue. Indeed on master it seems to beĀ fixed by adding getParsedOptionValues() methods for 1.10.0, but not yet released (and I haven't used it myself yet).
> No getParsedOptionValue for options with multiple values
> --------------------------------------------------------
>
> Key: CLI-268
> URL: https://issues.apache.org/jira/browse/CLI-268
> Project: Commons CLI
> Issue Type: Wish
> Components: CLI-1.x
> Reporter: Johannes Wienke
> Priority: Major
>
> I cannot find any hint on how to get parsed value types for options which may appear multiple times on the command line. getParsedOptionValue only returns the first argument and other methods returning collections or arrays only return strings. Either there is documentation required on how to handle multi-valued options, or the implementations is really missing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)