cmd_bmp.c: add standard subcommand handling