public CmdLine Add(string paramName, string shortName, CmdLineJoinType joinType, object value) { return (Add(new CmdLineParam { Name = paramName, ShortName = shortName, JoinType = joinType, Value = value })); }
public CmdLine AddRange(IDictionary <string, object> @params, CmdLineJoinType joinType) { _parameters .AddRange( @params.Select( x => new CmdLineParam { Name = x.Key, ShortName = x.Key, JoinType = joinType, Value = x.Value })); return(this); }
public static CmdLine Parse(string[] args, CmdLineJoinType joinType) { return(joinType == CmdLineJoinType.Equals ? ParseEqualsCmdLine(args) : joinType == CmdLineJoinType.OnlyValues ? ParseOnlyValues(args) : ParseSpacedCmdLine(args)); }
public CmdLine Add(string paramName, CmdLineJoinType joinType, object value) { return(Add(paramName, paramName, joinType, value)); }