[cli] fix bug with the text formatter