private static Command Translate(RoomieCommand command) { return new Command( arguments: command.Arguments.Select(Translate).ToArray(), description: command.Description, group: command.Group, name: command.Name ); }
public static IEnumerable <RoomieCommandArgument> GetArgumentsFromAttributes(this RoomieCommand command) { return(GetArgumentsFromAttributes(command.GetType())); }