Beispiel #1
0
        private ICommand CreateCommand(string[] args)
        {
            if (CommandLine.Parser.Default.ParseArguments(args, CommandLineOption))
            {
                StoreOption();
                CommandLineOption.ConvertToFullPath();
                return(CommandFactory.Create(CommandLineOption));
            }

            throw new Exceptions.ExcelMergeException(true, $"Invalid argument.\nargument:\n{string.Join(" ", args)}");
        }