You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ro...@apache.org on 2004/02/17 22:35:19 UTC

cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli2/commandline Parser.java

roxspring    2004/02/17 13:35:19

  Modified:    cli/src/java/org/apache/commons/cli2/commandline Tag:
                        RESEARCH_CLI_2_ROXSPRING Parser.java
  Log:
  CommandLineImpl refactoring
  Removed toString() from CommandLine
  Added getProperty(prop,default) for completeness
  Split CommandLineImpl into CommandLineImpl and WriteableCommandLineImpl
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.4   +1 -16     jakarta-commons/cli/src/java/org/apache/commons/cli2/commandline/Attic/Parser.java
  
  Index: Parser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli2/commandline/Attic/Parser.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- Parser.java	8 Feb 2004 13:09:00 -0000	1.1.2.3
  +++ Parser.java	17 Feb 2004 21:35:19 -0000	1.1.2.4
  @@ -43,7 +43,6 @@
       private Option helpOption = null;
       private String helpTrigger = null;
       private Group group = null;
  -    private boolean unprocessedAllowed = false;
   
       /**
        * Parse the arguments according to the specified options and properties.
  @@ -61,7 +60,7 @@
           final List argumentList = new LinkedList(Arrays.asList(arguments));
           final ListIterator iterator = argumentList.listIterator();
           final WriteableCommandLine commandLine =
  -            new CommandLineImpl(group, new ArrayList());
  +            new WriteableCommandLineImpl(group, new ArrayList());
   
           while (group.canProcess(iterator)) {
               group.process(commandLine, iterator);
  @@ -128,19 +127,5 @@
        */
       public void setHelpTrigger(final String helpTrigger) {
           this.helpTrigger = helpTrigger;
  -    }
  -
  -    /**
  -     * @return
  -     */
  -    public boolean isUnprocessedAllowed() {
  -        return unprocessedAllowed;
  -    }
  -
  -    /**
  -     * @param unprocessedAllowed
  -     */
  -    public void setUnprocessedAllowed(boolean unprocessedAllowed) {
  -        this.unprocessedAllowed = unprocessedAllowed;
       }
   }
  
  
  

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