[ 
https://issues.apache.org/jira/browse/CLI-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645566#comment-13645566
 ] 

Timothy Reaves commented on CLI-236:
------------------------------------

Option description = OptionBuilder
                .withArgName(OPTION_DESCRIPTION)
                .hasArg()
                .withDescription("The description of the layer being added.")
                .create(OPTION_DESCRIPTION);

and then

commandLine.getOptionValue(OPTION_DESCRIPTION)
                
> CommandLine.getOptionValue() only returns first word of string
> --------------------------------------------------------------
>
>                 Key: CLI-236
>                 URL: https://issues.apache.org/jira/browse/CLI-236
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.2
>         Environment: Java 1.7, Mac
>            Reporter: Timothy Reaves
>
> I have an option that takes an argument.  On the command line, I use:
> -someOption "A string"
> getOptionValue() should return "A String",  but it returns "A".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to