public static void main(String[] args) {
		int n = args.length;
		String s = null;
		String filepath = "/etc/redis-sharding.conf";
		for (int i = 0; i < n;) {
			s = args[i];
			switch (s) {
			case "-f":
				if (i + 1 < args.length) {
					filepath = args[i + 1];
				} else {
					System.err.println("no valid port supported");
					return;
				}
				i += 2;
				break;
			case "-verbose":
				Debugger.noisy = true;
				i++;
				break;
			case "-V":
				System.out.println(version);
				return;
			default:
				System.err.println("invalid argument:" + s);
				return;
			}
		}

		File f = new File(filepath);
		if (!f.exists()) {
			System.err.println("config file " + filepath + " does not exist");
			return;
		}

		try {
			ServerConfig config = ServerConfig.load(filepath);
			server.start(config);
		} catch (Exception e) {

		}
	}