public OptionScanner(String[] arguments) {

		// Don't construct anything, there are no arguments
		if (arguments.length == 0) {
			return;
		}

		// Construct LinkedList of options
		options = new LinkedList<Option>();

		// Run through all arguments
		for (int i = 0; i < arguments.length; i++) {

			String argument = arguments[i];

			// Search for a key identifier
			if (argument.charAt(0) == '-') {

				// If it's the last item in array, store it as a null option
				if (i == arguments.length - 1) {

					Option option = new Option();
					option.key = argument.substring(1);
					options.add(option);

					// If the key is without the value
				} else if (arguments[i + 1].charAt(0) == '-') {

					Option option = new Option();
					option.key = argument.substring(1);
					options.add(option);

					// Option has a value
				} else {

					Option option = new Option();
					option.key = argument.substring(1);
					option.value = arguments[i + 1];
					options.add(option);
				}

			}

		}

	}