split_args function

Split arguments to positional and named