fix MNG-755 (MNG-720). GnuParser's interpretation of the commandline conforms

to m2's idea about options; PosixParser doesn't.


git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@279574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kenney Westerhof 2005-09-08 15:22:01 +00:00
parent 6d4537dc97
commit 570bc62482
1 changed files with 2 additions and 2 deletions

View File

@ -18,11 +18,11 @@ package org.apache.maven.cli;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.GnuParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser;
import org.apache.maven.Maven;
import org.apache.maven.artifact.manager.WagonManager;
import org.apache.maven.artifact.repository.ArtifactRepository;
@ -650,7 +650,7 @@ public class MavenCli
public CommandLine parse( String[] args )
throws ParseException
{
CommandLineParser parser = new PosixParser();
CommandLineParser parser = new GnuParser();
return parser.parse( options, args );
}