/// <summary> /// Takes a raw command line string and splits it into a new /// CommandLineCollection instance. /// </summary> /// <returns> /// A <see cref="CommandLineCollection"/> /// </returns> public CommandLineCollection CreateCommandLineCollection(string rawCommandLine) { var formattedCmdLine = FormatRawCommandLine(rawCommandLine); var commandLineCollection = new CommandLineCollection(); foreach (string rawOption in SplitRegex.Split(formattedCmdLine)) { commandLineCollection.Add(rawOption); } return(commandLineCollection); }
private void CreateCommandLineCollection() { _commandLineCollection = _commandLineCollectionFactory.CreateCommandLineCollection(RawCommandLine); }