public CommandlineParser(string commandLine) { _Params = new CommandLineParameterWithValueCollection(); CreateKeys(GetAppArgsFromCommandLine(commandLine)); }
public ApplicationParameters(CommandLineParameterWithValueCollection parameters) { this._Parameters = parameters; }
public static CommandLineParameterCollection GetMissingMandatoryParams(CommandLineParameterCollection mandatoryParams, CommandLineParameterWithValueCollection currentAppParams) { CommandLineParameterCollection missingRequiredParams = new CommandLineParameterCollection(); foreach (CommandLineParameter param in mandatoryParams) { if (param.IsMandatory && currentAppParams.Find(p => String.Compare(p.GetName(), param.GetName(), true) == 0) == null) { missingRequiredParams.Add(param); } } return(missingRequiredParams); }