changes to adding primitive?

seems there was some changes to adding primitive!

like i get an error on this one

bpy.ops.mesh.primitive_cylinder_add(vertices=16, radius=fluodiam/2.0, depth=2.0, cap_ends=True,
view_align=False, enter_editmode=False, location=(
0.0, 0.0, 0.0), rotation=(0.0, radians(90), 0.0), layers=(layers))

what would the changes be in this case

i did look at API page but did not find the changes!

thanks for any help

From the console


bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=1, depth=2, end_fill_type='NGON', view_align=False, enter_editmode=False, location=(0, 0, 0), rotation=(0, 0, 0), layers=(False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False))

Has an end_fill_type rather than cap_ends…

i guess here that all the primitives have been change like that

but the wiki API has not been change yet !

and should give something on the console until wiki is updated!

thanks