def splitarg(args):
if not args:<EOL><INDENT>return args<EOL><DEDENT>split = list()<EOL>for arg in args:<EOL><INDENT>if '<STR_LIT:U+002C>' in arg:<EOL><INDENT>split.extend([x for x in arg.split('<STR_LIT:U+002C>') if x])<EOL><DEDENT>elif arg:<EOL><INDENT>split.append(arg)<EOL><DEDENT><DEDENT>return split<EOL>
This function will split arguments separated by spaces or commas 
to be backwards compatible with the original ArcGet command line tool