@Override
	public void parseCommandLine(CommandLine line)
	{
		if ( line.hasOption("ftpserver") )
		{
			setDomain(line.getOptionValue("ftpserver"));
		}
		
		if ( line.hasOption("ftpuser") )
		{
			setUsername(line.getOptionValue("ftpuser"));
		}
		
		if ( line.hasOption("ftppassword") )
		{
			setPassword(line.getOptionValue("ftppassword"));
		}
		
		if ( line.hasOption("ftpport") )
		{
			int port = 21;
			try 
			{
				port = Integer.parseInt(line.getOptionValue("ftpport"));
			}
			catch (NumberFormatException nfe)
			{
				System.err.println("The value for argument ftpport is invalid, using the default (port: "+port+")");
			}
			
			setPort(port);
		}
		
		if ( line.hasOption("ftpremote") )
		{
			setmRemoteAddr(line.getOptionValue("ftpremote"));
		}
	}