public void Execute(ArgumentList arguments, TaskList tasklist, TagList tags, TagFolder folder) { if (tasklist.HasSameTask(arguments.GetParameter(1)) == false) { Task task = new Task(); FileIO loader = new FileIO(); task.TaskDescription = arguments.GetParameter(1); task.IsNewTask = true; task = CheckDueDate(arguments, task); tasklist.AddTask(ref task); loader.SaveTasks(tasklist.GetTasks()); Console.WriteLine("Task {0} added", task.TaskDescription); } else Console.WriteLine("Task already in list"); }