Commit 45b1b710 authored by jcnventura's avatar jcnventura

Remove warning in drush pdfdl when no argument is provided.

parent 0c36f82d
......@@ -33,6 +33,18 @@ function print_pdf_drush_command() {
return $items;
}
/**
* Implements of drush_hook_COMMAND_validate().
*/
function drush_print_pdf_download_validate($library = NULL) {
if (is_null($library)) {
$pdf_libs = array();
drush_command_invoke_all_ref('drush_pdf_libs_alter', $pdf_libs);
drush_set_error('DRUSH_PDFDL_MISSING_ARG', dt("Usage: drush !cmd <library>\nWhere <library> is one of the following: !libs\n\nTry 'drush !cmd --help' for more information.", array('!cmd' => 'print-pdf-download', '!libs' => implode(', ', array_keys($pdf_libs)))));
}
}
/**
* Download and extract PDF archive.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment