Move get_arg to avoid future declaration of function when