private static Options GetParsedArguments(string[] args) { var options = new Options(); bool isOk = Parser.Default.ParseArguments(args, options); if (!isOk || options.Assemblies==null || options.Assemblies.Count==0) { Console.WriteLine(options.GetUsage()); Environment.Exit(1); } if (options.Path == null || options.Path.Count == 0) { options.Path = new[] {Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}; } return options; }
private static Options GetParsedArguments(string[] args) { var options = new Options(); bool isOk = Parser.Default.ParseArguments(args, options); if (!isOk || options.Assemblies == null || options.Assemblies.Count == 0) { Console.WriteLine(options.GetUsage()); Environment.Exit(1); } if (options.Path == null || options.Path.Count == 0) { options.Path = new[] { Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) }; } return(options); }