[PATCH v2 11/36] cli: Allow history to be disabled