Github user jlm429 commented on the issue:

    https://github.com/apache/commons-cli/pull/14
  
    Just adding this diff from the code above if needed for future reference.  
this pr can be closed - do we possibly need more committers for CLI?  It 
doesn't seem like anyone is paying attention to the 2 that are open... 
    
    @@ -540,10 +539,32 @@ else if (isJavaProperty(t))
                 String opt = t.substring(0, pos);
                 String value = t.substring(pos + 1);
     
    -            if (opt.length() == 1)
    +          //check if equal is in argument (-option"test=arg")
    +          // -L=V
    +          // if (opt.length()>1 && !options.hasOption(opt))
    +          {
    +            //Search for long option and use correct option/argument if 
found
    +            String newOpt=getLongPrefix(opt);
    +            if (newOpt!=null)
    +            {
    +              pos = newOpt.length();
    +              opt = t.substring(0, pos);
    +              value = t.substring(pos);
    +            }
    +            //check if equal is in argument (-o"test=arg") and use correct 
short option if found
    +            // -S=V
    +            else if (options.hasOption(opt.substring(0,1)) && 
!opt.substring(1,2).contains("="))
    +            {
    +              opt = t.substring(0, 1);
    +              value = t.substring(1);
    +            }
    +          }
    +
    +
    +          if (opt.length() == 1)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to