Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

drush_usage

Definition

drush_usage()
contributions/drush/drush.module, line 127

Description

This is called if no command or an unknown command is entered.

Code

<?php
function drush_usage() {
  $commands = func_get_args();

  if (drush_get_option('help') || empty($commands)) {
    return drush_callback_help();
  }

  return drush_error(t('Invalid command !command.', array('!command' => implode(" ", $commands))));

}
?>