function drush_make_pre_make

8.0.x make.drush.inc drush_make_pre_make($makefile = NULL, $build_path = NULL)
7.x make.drush.inc drush_make_pre_make($makefile = NULL, $build_path = NULL)
master make.drush.inc drush_make_pre_make($makefile = NULL, $build_path = NULL)

Implements drush_hook_pre_COMMAND().

If --version option is supplied, print it and prevent execution of the command.

File

commands/make/make.drush.inc, line 288
Drush Make commands.

Code

function drush_make_pre_make($makefile = NULL, $build_path = NULL) {
  if (drush_get_option('version', FALSE)) {
    drush_print(dt('Drush make API version !version', array('!version' => MAKE_API)));
    drush_print_pipe(MAKE_API);
    // Prevent command execution.
    return FALSE;
  }
}