public static void Main(string[] args) { Options options = new Options(); if (CommandLine.Parser.Default.ParseArguments(args, options)) { IWindsorContainer container = new WindsorContainer(); container.ConfigureForNode(); if (!String.IsNullOrEmpty(options.ReceiverAddress)) { // mine } else { // sync } } }