sebb        2005/02/22 06:28:15

  Modified:    src/jorphan/org/apache/commons/cli/avalon Tag: rel-2_0
                        CLArgsParser.java
  Log:
  Handle missing second argument where next arg is an option
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.5   +8 -1      
jakarta-jmeter/src/jorphan/org/apache/commons/cli/avalon/Attic/CLArgsParser.java
  
  Index: CLArgsParser.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/jorphan/org/apache/commons/cli/avalon/Attic/CLArgsParser.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- CLArgsParser.java 22 Feb 2005 00:03:53 -0000      1.1.2.4
  +++ CLArgsParser.java 22 Feb 2005 14:28:15 -0000      1.1.2.5
  @@ -701,6 +701,13 @@
                   {
                       m_option.addArgument( token.getValue() );
                   }
  +                // Are we about to start a new option?
  +                if (0 == m_ch && '-' == peekAtChar()){
  +                    // Yes, so the second argument is missing
  +                    m_option.addArgument( "" );
  +                    m_options.addElement( m_option );
  +                    m_state = STATE_NORMAL; 
  +                }
               }
               else //2nd argument
               {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to