[ 
https://issues.apache.org/jira/browse/IVY-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Woodworth updated IVY-952:
----------------------------------

    Description: Currently it is impossible to pass any arguments which start 
with the dash character through to the class specified by the "main" argument 
in standalone mode.  The attached patch makes the command-line parser recognize 
the special getopt-style "--" argument which tells the parser to stop parsing 
for known arguments and simply pass all subsequent tokens on to the main method 
of the class being invoked.  For the record, I am aware of the "args" option 
which looks to be intended for this purpose, but it doesn't work. Introducing 
the special double-dash operator seemed the best fix as it's a widely 
recognized idiom for precisely this functionality.  (was: Currently it is 
impossible to pass any arguments which start with the dash character through to 
the class specified by the "main" argument in standalone mode.  The attached 
patch makes the command-line parser recognize the special getopt-style "--" 
argument which tells the parser to stop parsing for known arguments and simply 
pass all subsequent tokens on to the main method of the class being invoked.  
For the record, I am aware of the "args" option which looks to be intended for 
this purpose, but it doesn't work. Introducing the special "--" operator seemed 
the best fix as it's a widely recognized idiom for precisely this 
functionality.)

> Support for passing arbitrary arguments to the -main invoked class when using 
> the standalone mode is severely limited.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: IVY-952
>                 URL: https://issues.apache.org/jira/browse/IVY-952
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-RC1
>            Reporter: Patrick Woodworth
>         Attachments: IVY-952.patch
>
>
> Currently it is impossible to pass any arguments which start with the dash 
> character through to the class specified by the "main" argument in standalone 
> mode.  The attached patch makes the command-line parser recognize the special 
> getopt-style "--" argument which tells the parser to stop parsing for known 
> arguments and simply pass all subsequent tokens on to the main method of the 
> class being invoked.  For the record, I am aware of the "args" option which 
> looks to be intended for this purpose, but it doesn't work. Introducing the 
> special double-dash operator seemed the best fix as it's a widely recognized 
> idiom for precisely this functionality.

-- 
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