Improve trace command argument parsing.