protected CommandLineAwareModule(ParamList argsRaw, IEnumerable<string> setFlags) { var args = argsRaw.Args.AsCleanedArgs(); foreach (var arg in args) { var setFlag = setFlags.FirstOrDefault(f => arg.StartsWith(f, StringComparison.InvariantCultureIgnoreCase)); if (setFlag != null) { string chomped = arg.Substring(setFlag.Length); sets.Add(new SetArg(chomped)); } } props = this.GetProps(); var aliasAtt = this.GetModuleAlias(); if (aliasAtt != null) { Alias = aliasAtt; } }
protected CommandLineAwareModule(ParamList args) : this(args, DefaultSetFlags) { }