//process the arguments passed into the application public static void ProcessArgs(string[] args) { var options = new AppCommandLineOptions(); Parser.Default.ParseArguments(args, options); foreach (var t in args) { if (t.Contains("parkitectnexus://")) { options.Url = t; } } if (args.Any()) { Parser.Default.ParseArguments(args, options); if (options.Url != null) { NexusUrl url; if (NexusUrl.TryParse(options.Url, out url)) { App.HandleUrl(url); } } } }
//process the arguments passed into the application public static void ProcessArgs(string[] args) { var options = new AppCommandLineOptions(); Parser.Default.ParseArguments(args, options); foreach (var t in args) { if (t.Contains("parkitectnexus://")) { options.Url = t; } } if (args.Any()) { Parser.Default.ParseArguments(args, options); if (options.Url != null) { NexusUrl url; if (NexusUrl.TryParse(options.Url, out url)) App.HandleUrl(url); } } }