function _drush_make_generate_get_version_options

8.0.x generate.make.inc _drush_make_generate_get_version_options()
6.x generate.make.inc _drush_make_generate_get_version_options()
7.x generate.make.inc _drush_make_generate_get_version_options()
5.x generate.make.inc _drush_make_generate_get_version_options()
master generate.make.inc _drush_make_generate_get_version_options()

Create the $version_options array from the --include-versions and --exclude-versions command line options.

1 call to _drush_make_generate_get_version_options()
drush_make_generate in commands/make/generate.make.inc
Drush callback; generate makefile from the current build.

File

commands/make/generate.make.inc, line 28
Functions for the generate makefile command.

Code

function _drush_make_generate_get_version_options() {
  // What projects should we pin the versions for?
  // Check the command-line options for details.
  foreach (array("include", "exclude") as $option) {
    $version_options[$option] = drush_get_option("$option-versions");
    if ($version_options[$option] !== TRUE) {
      $version_options[$option] = array_filter(explode(",", $version_options[$option]));
    }
  }
  return $version_options;
}