function drush_migrate_get_options in Migrate 6
Same name and namespace in other branches
- 6.2 migrate.drush.inc \drush_migrate_get_options()
- 7.2 migrate.drush.inc \drush_migrate_get_options()
Get the value of all migrate related options. Used when spawning a subshell.
Return value
An array of command specific options and their values.
1 call to drush_migrate_get_options()
File
- ./
migrate.drush.inc, line 105 - Drush support for the migrate module
Code
function drush_migrate_get_options() {
$options = array();
$command = drush_parse_command();
foreach ($command['options'] as $key => $value) {
// Strip leading --
$key = ltrim($key, '-');
$value = drush_get_option($key);
if (isset($value)) {
$options[$key] = $value;
}
}
return $options;
}