split_arguments method in AddGenerator