[
https://issues.apache.org/jira/browse/CLI-337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882627#comment-17882627
]
Claude Warren edited comment on CLI-337 at 9/18/24 8:44 AM:
------------------------------------------------------------
This seems a bit beyond the functionality of CLI. CLI expects Options and
Args. There are a number of issues that come to mind with parsing args from a
string. I believe those issues are best resolved by the calling program.
A quick search shows that there is a solution in the Apache Ant project:
[Commandline|http://api.dpml.net/ant/1.6.4/org/apache/tools/ant/types/Commandline.html]
was (Author: claudenw):
This seems a bit beyond the functionality of CLI. CLI expects Options and
Args. There are a number of issues that come to mind with parsing args from a
string. I believe those issues are best resolved by the calling program.
> Parse arguments in a single string
> ----------------------------------
>
> Key: CLI-337
> URL: https://issues.apache.org/jira/browse/CLI-337
> Project: Commons CLI
> Issue Type: Improvement
> Components: Parser
> Affects Versions: 1.9.0
> Reporter: Hüseyin Kartal
> Priority: Major
>
> Apache Maven uses apache-cli to parse args. But maven also supports passing
> conf file which contains these args. To handle that they do the splitting of
> file content to args[] and pass this to cli.
> Please provide a parser for single string to args[]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)