public void ParseOptions() { var options = new OptionSet { { "b|blank", v => MakeBlank = true }, { "n|name=", v => SolutionName = v }, { "p|project=", v => ProjectsToAdd.Add(v) } }; var extra = options.Parse(Request.Arguments); Request.Arguments = extra.ToArray(); }
/// <summary> /// Add a project to the contest. /// </summary> /// <param name="project">The project to add</param> public void AddProject(Project project) { Projects.Add(project); ProjectsToAdd.Add(project); }