Beispiel #1
0
        private IList <CommandLineArgument> BuildCommandLineArguments(string[] args)
        {
            IList <CommandLineArgument> commandLineArguments = new List <CommandLineArgument>();

            foreach (CommandLineArgumentType type in Enum.GetValues(typeof(CommandLineArgumentType)))
            {
                var argument = _commandLineArgumentParseService.Parse(args, type);
                if (argument != null)
                {
                    commandLineArguments.Add(argument);
                }
            }
            return(commandLineArguments);
        }