add optional 'before_invoke' parameter to WP_CLI::add_command()
add optional 'before_invoke' parameter to WP_CLI::add_command()

this avoids repeating the command name and makes it clearer when the
callback is fired

wp-cli/wp-cli,wp-cli/wp-cli