cli cfg: Implement support for check command args and custom vars

refs #5929