예제 #1
0
        /// <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);
        }
예제 #2
0
 private void CreateCommandLineCollection()
 {
     _commandLineCollection = _commandLineCollectionFactory.CreateCommandLineCollection(RawCommandLine);
 }