public Options(params string[] args)
{
Port = DefaultPort;
AssemblyPaths = new Collection<string>();
options = new OptionSet
{
{
"p|port=",
"the {PORT} the server should listen on (default=" + DefaultPort + ").",
(int v) => Port = v
},
{
"a|assembly=",
"an assembly to search for step definition methods.",
v => AssemblyPaths.Add(v)
},
{
"h|?|help",
"show this message and exit.",
v => ShowHelp = v != null
}
};
options.Parse(args);
}