prep_vector_arg function

Prepare a vector argument