function drush_core_version

8.0.x core.drush.inc drush_core_version()
6.x core.drush.inc drush_core_version()
7.x core.drush.inc drush_core_version()
4.x core.drush.inc drush_core_version()
5.x core.drush.inc drush_core_version()
master core.drush.inc drush_core_version()

Called for `drush version` or `drush --version`

File

commands/core/core.drush.inc, line 781
Core drush commands.

Code

function drush_core_version() {
  drush_print(dt("drush version !version", array('!version' => DRUSH_VERSION)));
  drush_print_pipe(DRUSH_VERSION);
  // Next check to see if there is a newer drush.
  if (!drush_get_context('DRUSH_PIPE') && !drush_get_option('self-update', TRUE)) {
    drush_check_self_update();
  }
}