Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
drush_pm_help($section)
contributions/drush/drush_pm/drush_pm.module, line 11
Implementation of hook_help().
<?php
function drush_pm_help($section) {
$handlers = str_replace('drush_pm_', '', module_invoke_all('drush_pm_package_handler'));
if ($handlers) {
$handlers[0] = $handlers[0] .' (default)';
$handler = '--handler - specify which package handler you would like to use.
Available options: '. implode(', ', $handlers) . "\n";
}
else {
$handler = "ERROR: You must activate a drush Package Manager handler module in order
to install or update packages.";
}
switch ($section) {
case 'drush:pm install':
return t("Usage: drush [options] pm install <package_1> <package_2> ...
<package_n> is the short name of a project hosted on drupal.org,
or the short name and the version number (Drupal major version is optional).
e.g. project, project-5.x-1.0, project-1.0, project-1.x-dev, project-1.1-rc1
So far, only modules are supported.\n
The modules will be installed into a site specific modules directory if one
exists, otherwise sites/all/modules is used.
After installing, you still have to activate on the normal module
administration page\n\n". $handler);
case 'drush:pm update':
return t("Usage: drush [options] pm update\n
Displays update status information and allows to update all installed packages
to the latest recommended version (so far, only modules are supported).
If you only want to update certain projects, pass those as additional
arguments (e.g. cck devel views ...).
Note: The user is asked to confirm before the actual update is started.
Use the -y option to answer all questions with yes automatically.\n\n". $handler);
case 'drush:pm info':
return t("Usage: drush [options] pm info <package_1> <package_2> ...\n
View all releases for a given project. Useful for deciding which version to install/update.
");
}
}
?>