add option to parse a full command using this.parse

Our coding style is to use `a in {b: 1, c: 1}`, not `'bc'.indexOf(a)`