Welcome to part two of our miniseries on Drush commands! Do check out part one if you haven't already. There you'll see what we've been up to with our pretend module, my_awesome_module. If you're writing a custom Drush command, it's pretty much guaranteed that you're needing to do something more complicated than write 'Hello World' to your database 5,000 times. Let's take a look at some Drush essentials.
Arguments and Options
You guessed it - just pass in an array. Simply give 'arguments' or 'options', and, for each one, a helpful description.
/**
* Implements hook_drush_command().
*/
function my_awesome_module_drush_command() {...