wp-cli/wp-cli — pull request #536 by scribu (2013-06-21 08:43:30+00:00)
Title: 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.

The question is: do we still need hooks?