Beispiel #1
0
        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();
        }
Beispiel #2
0
 /// <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);
 }