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

Emmanuel Bourg commented on CLI-180:
------------------------------------

That was on the command line or in a shell script? What is your OS?

On Windows the argument must be surrounded with double quotes. On Unix you can 
use simple quotes, double quotes, or escape the space with a backslash.


> arguments with spaces parsed as individual arguments
> ----------------------------------------------------
>
>                 Key: CLI-180
>                 URL: https://issues.apache.org/jira/browse/CLI-180
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.1, 1.2
>            Reporter: Marius Scurtescu
>
> If an argument contains a space then the part after the space is treated as 
> another argument and you end up with an invalid argument error.
> Tried many things to escape the space: double quotes around the argument 
> value, backslash before the space, short and long forms, etc. Nothing is 
> working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to