Restore CLI prefix search output

The output of a prefix listing in the CLI was inadvertently changed when
implementing #416. This restores the previous behaviour.