public ArrayList<String> autocomplete(String str) {
		ArrayList<String> result = new ArrayList<String>();
		str = str.trim();

		if (str.charAt(0) == '-') {
			if (str.length() == 1) {
				for (Option o : options) {
					result.add(String.valueOf(o.getShort()));
					result.add("-" + o.getLong());
				}
				return result;
			} else if (str.charAt(1) == '-') {
				str = str.substring(2);
				int strlen = str.length();
				for (Option o : options) {
					if (o.getLong().substring(0, strlen).equalsIgnoreCase(str))
						result.add(o.getLong());
				}
				return result;
			} else {
				char c = str.charAt(1);
				for (Option o : options) {
					if (o.getShort() == c)
						result.add(String.valueOf(o.getShort()));
				}
				return result;
			}
		} else {
			; // TODO: TBD
		}

		return null;
	}