[PATCH v2 1/2] cmd: Fix TYPE behavior.