private static CommandLine getCommandLine(String args[])
	{
		HelpFormatter formatter = new HelpFormatter();
		Options options = getOptions(args);
		CommandLineParser parser = new PosixParser();
		CommandLine cmd = null;
		try
		{
			cmd = parser.parse(options, args);
		}
		catch (ParseException e)
		{
			System.err.println("Error : " + e.getMessage());
			formatter.printHelp("SortCompare", options, true);
			System.exit(1);
		}

		if (cmd.hasOption("h"))
		{
			formatter.printHelp("SortCompare", options, true);
			System.exit(0);
		}
		return cmd;
	}