argsParser function

Parser of an argument string