wp-cli/wp-cli — pull request #1440 by drrobotnik (2014-10-07 03:33:42+00:00)
Title: add option to choose different dbname from wp db dump

adding the --db_name flag allows extra flexibility. In my case my wp-config is one level above installs. Running db dump one level above with --path is failing to export. Allowing me to define the db name solves this issue and allows me to dump multiple installs easily.