diff --git a/features.drush.inc b/features.drush.inc index 8d1e298..c5e4bed 100644 --- a/features.drush.inc +++ b/features.drush.inc @@ -178,11 +178,18 @@ function drush_features_list() { */ function drush_features_components() { $args = func_get_args(); - // If no args supplied, list everything. + $components = _drush_features_component_list(); + // If no args supplied, prompt with a list. if (empty($args)) { - $args = array('*'); + $types = array_keys($components); + array_unshift($types, 'all'); + $choice = drush_choice($types, 'Enter a number to choose which component type to list.'); + if ($choice === FALSE) { + return; + } + + $args = ($choice == 0) ? array('*') : array($types[$choice]); } - $components = _drush_features_component_list(); $options = array( 'provided by' => TRUE, );