function pm_parse_arguments

8.0.x pm.drush.inc pm_parse_arguments($args, $dashes_to_underscores = TRUE)
6.x pm.drush.inc pm_parse_arguments($args, $dashes_to_underscores = TRUE)
7.x pm.drush.inc pm_parse_arguments($args, $dashes_to_underscores = TRUE)
5.x pm.drush.inc pm_parse_arguments($args, $dashes_to_underscores = TRUE)
master pm.drush.inc pm_parse_arguments($args, $dashes_to_underscores = TRUE)

Sanitize user provided arguments to several pm commands.

Return an array of arguments off a space and/or comma separated values.

12 calls to pm_parse_arguments()
drush_core_quick_drupal in commands/core/core.drush.inc
Callback for core-quick-drupal command.
drush_pm_disable in commands/pm/pm.drush.inc
Command callback. Disable one or more extensions.
drush_pm_download in commands/pm/download.pm.inc
Command callback. Download Drupal core or any project.
drush_pm_enable_validate in commands/pm/pm.drush.inc
Validate callback. Determine the modules and themes that the user would like enabled.
drush_pm_info in commands/pm/info.pm.inc
Command callback. Show detailed info for one or more extensions.

... See full list

File

commands/pm/pm.drush.inc, line 1420
The drush Project Manager

Code

function pm_parse_arguments($args, $dashes_to_underscores = TRUE) {
  $arguments = _convert_csv_to_array($args);
  foreach ($arguments as $key => $argument) {
    $argument = ($dashes_to_underscores) ? strtr($argument, '-', '_') : $argument;
  }
  return $arguments;
}