private static Options getOptions(String[] args)
	{
		Options options = new Options();

		OptionGroup k = new OptionGroup();
		k.addOption(new Option("s", true,
				"Name of the sort algorithm. Can be one of '"
						+ SortHelper.getAlgorithmList().toString()));
		k.addOption(new Option("h", false, "This message"));
		k.setRequired(true);
		options.addOptionGroup(k);

		OptionGroup inputMethod = new OptionGroup();
		inputMethod.addOption(new Option("c", false,
				"Indicates that input will be given at the console"));
		inputMethod.addOption(new Option("n", true,
				"Number of elements to be generated randomly for sorting.\nDefault is "
						+ N));
		options.addOptionGroup(inputMethod);

		options.addOption(
				"i",
				true,
				"Input Type. Can be one of, "
						+ SortHelper.getInputNatureList().toString()
						+ ". To be used with -n. Will be ignored if used with -i.\nDefault is '"
						+ inputType + "'");

		return options;
	}