public override void Call(ParseResult parseResult, object values, string optionString) { var newValues = parseResult.Get<IEnumerable>(Destination, new object[] {}) .Cast<object>() .Concat(new[] {values}) .ToArray(); parseResult[Destination] = newValues; }
public override void Call(ParseResult parseResult, object values, string optionString) { parseResult[Destination] = parseResult.Get(Destination, 0) + 1; }