public static WebResourceHelperOptions ParseArgs(string[] args, out List <ParameterException> allExceptions) { allExceptions = new List <ParameterException>(); var pathSeparator = ArgsUtility.ExtractArgValueCatchingErrors(args, new PathSeparator(), allExceptions); return(new WebResourceHelperOptions { ConnectionString = ArgsUtility.ExtractArgValueCatchingErrors(args, new ConnectionString(), allExceptions), RootPath = ArgsUtility.ExtractArgValueCatchingErrors(args, new RootFolderPath(), allExceptions), ShouldShowHelp = ArgsUtility.ExtractArgValueCatchingErrors(args, new ShouldShowHelp(), allExceptions), SolutionName = ArgsUtility.ExtractArgValueCatchingErrors(args, new SolutionName(), allExceptions), PathSeparator = pathSeparator, PublisherPrefixOverride = ArgsUtility.ExtractArgValueCatchingErrors(args, new PublisherPrefixOverride(), allExceptions), Prefix = ArgsUtility.ExtractArgValueCatchingErrors(args, new Prefix(), allExceptions) ?? pathSeparator, LogLevel = ArgsUtility.ExtractArgValueCatchingErrors(args, new InformationLevel(), allExceptions), StatusOnly = ArgsUtility.ExtractArgValueCatchingErrors(args, new StatusOnly(), allExceptions), Force = ArgsUtility.ExtractArgValueCatchingErrors(args, new Force(), allExceptions), Automate = ArgsUtility.ExtractArgValueCatchingErrors(args, new Automate(), allExceptions), AddNewResources = !ArgsUtility.ExtractArgValueCatchingErrors(args, new NoNew(), allExceptions), UpdateResources = !ArgsUtility.ExtractArgValueCatchingErrors(args, new NoUpdates(), allExceptions), RemoveMissingResources = ArgsUtility.ExtractArgValueCatchingErrors(args, new RemoveMissing(), allExceptions), ShouldPublish = !ArgsUtility.ExtractArgValueCatchingErrors(args, new NoPublish(), allExceptions), FileSizeLimitKb = ArgsUtility.ExtractArgValueCatchingErrors(args, new FileSizeLimit(), allExceptions), PublishAllOnly = ArgsUtility.ExtractArgValueCatchingErrors(args, new PublishAllOnly(), allExceptions) }); }
public static PluginWorkflowHelperOptions ParseArgs(string[] args, out List <ParameterException> allExceptions) { allExceptions = new List <ParameterException>(); return(new PluginWorkflowHelperOptions { ConnectionString = ArgsUtility.ExtractArgValueCatchingErrors(args, new ConnectionString(), allExceptions), ShouldShowHelp = ArgsUtility.ExtractArgValueCatchingErrors(args, new ShouldShowHelp(), allExceptions), SolutionName = ArgsUtility.ExtractArgValueCatchingErrors(args, new SolutionName(), allExceptions), LogLevel = ArgsUtility.ExtractArgValueCatchingErrors(args, new InformationLevel(), allExceptions), DllPath = ArgsUtility.ExtractArgValueCatchingErrors(args, new DllPath(), allExceptions), IsolationMode = ArgsUtility.ExtractArgValueCatchingErrors(args, new IsolationMode(), allExceptions), SourceType = ArgsUtility.ExtractArgValueCatchingErrors(args, new SourceType(), allExceptions) }); }