Refactor arg spec into commands.