Add -1 flag to list cmds, to output a compact list

The output format is "id: name\n". It should work with all list
based commands.