/// <summary> /// Parses the arguments. /// </summary> /// <param name="args">Program arguments.</param> /// <returns>A collection of all targets to be executed.</returns> private static List <ITarget> ParseArguments(string[] args) { List <ITarget> result = new List <ITarget>(); foreach (string arg in args) { if (TargetCollection.Contains(arg)) { result.Add(TargetCollection.Get(arg)); } else { HoneycombConsole.WriteErrorLine($"Unknown target '{arg}' found. Use 'honeycomb help' for a list of all available targets."); Exit(ExitCode.UnknownTarget); } } return(result); }