standardize special flags handling
introduce WP_CLI::add_hook()