protected static void AddCustomStep(Pipeline pipeline, string arg)
{
int pos = arg.IndexOf(":");
if (pos == -1)
{
pipeline.AppendStep(ResolveStep(arg));
return;
}
string [] parts = arg.Split(':');
if (parts.Length != 2)
{
Usage("Step is specified as TYPE:STEP");
}
if (parts [0].IndexOf(",") > -1)
{
pipeline.AddStepBefore(FindStep(pipeline, parts [1]), ResolveStep(parts [0]));
}
else if (parts [1].IndexOf(",") > -1)
{
pipeline.AddStepAfter(FindStep(pipeline, parts [0]), ResolveStep(parts [1]));
}
else
{
Usage("No comma separator in TYPE or STEP");
}
}