args_env function

create an environment for args