Skip to content
This repository was archived by the owner on Jun 26, 2019. It is now read-only.

Commit

Permalink
Handle multiple hidden options in one command.
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman committed Dec 26, 2016
1 parent f69a5e8 commit 7a26715
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/annotationcommand_adapter.inc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ function annotationcommand_adapter_add_hook_options(&$command)
if (!empty($default)) {
$command['options'][$option]['example-value'] = $default;
}
if ($commandinfo->getAnnotation('hidden-option') == $option) {
if (in_array($option, _convert_csv_to_array($commandinfo->getAnnotation('hidden-option')))) {
$command['options'][$option]['hidden'] = TRUE;
}
$fn = 'annotationcommand_adapter_alter_option_description_' . $option;
Expand Down
Empty file.

0 comments on commit 7a26715

Please sign in to comment.