@Override
	public void parseCommandLine(CommandLine line)
	{
		if ( line.hasOption("resolution") )
		{
			String[] parts = line.getOptionValue("resolution").split("x");
			if ( parts.length == 2 )
			{
				try 
				{
					mResoWidth = Integer.parseInt(parts[0]);
					mResoHeight = Integer.parseInt(parts[1]);
				}
				catch ( NumberFormatException nfe )
				{
					System.err.println("The value for argument resolution is invalid. Using default setting: 640x480");
					mResoWidth = 640;
					mResoHeight = 480;
				}
			}
			else
			{
				System.err.println("The value for argument resolution is invalid. Using default setting: 640x480");
				mResoWidth = 640;
				mResoHeight = 480;
			}
		}
	
		if ( line.hasOption("burstsleep") )
		{
			try 
			{
				mSleep = Integer.parseInt(line.getOptionValue("burstsleep"));
			}
			catch ( NumberFormatException nfe )
			{
				System.err.println("The value for argument burstsleep is invalid. Using default setting: 1000");
				mSleep = 1000;
			}
		}
	}