Fix `type` and `key` CLI argument assignment