[PATCH 2/2] cli: allow users to determine history buffer allocation method