sgrun: safer arg names, regex matching