fixing a CLI bug inadvertantly introduced in the last commit