Example #1
0
 public CmdLine Add(string paramName, string shortName, CmdLineJoinType joinType, object value)
 {
     return
         (Add(new CmdLineParam {
         Name = paramName, ShortName = shortName, JoinType = joinType, Value = value
     }));
 }
Example #2
0
 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);
 }
Example #3
0
 public static CmdLine Parse(string[] args, CmdLineJoinType joinType)
 {
     return(joinType == CmdLineJoinType.Equals
                ? ParseEqualsCmdLine(args)
                : joinType == CmdLineJoinType.OnlyValues ? ParseOnlyValues(args) : ParseSpacedCmdLine(args));
 }
Example #4
0
 public CmdLine Add(string paramName, CmdLineJoinType joinType, object value)
 {
     return(Add(paramName, paramName, joinType, value));
 }