static int RunRelay(string[] args) { foreach (string arg in args) { if (arg.StartsWith("chrome-extension://")) { continue; } else if (arg.StartsWith("--parent-window=")) { options.parentWindow = arg.Remove(0, "--parent-window=".Length); } else { return(InvalidOption(arg)); } } Relay host = new Relay(options); host.Run(); return(0); }
static int RunRelay(string[] args) { foreach (string arg in args) { if (arg.StartsWith("chrome-extension://")) continue; else if (arg.StartsWith("--parent-window=")) options.parentWindow = arg.Remove(0, "--parent-window=".Length); else return InvalidOption(arg); } Relay host = new Relay(options); host.Run(); return 0; }