for (Annotation annotation : parameterAnnotations[i])
{
if (annotation instanceof Option)
{
Option option = (Option) annotation;
optionMeta.setParent(commandMeta);
optionMeta.setName(option.name());
optionMeta.setShortName(option.shortName());
optionMeta.setFlagOnly(option.flagOnly());
optionMeta.setDescription(option.description());
optionMeta.setDefaultValue(option.defaultValue());
optionMeta.setHelp(option.help());
optionMeta.setRequired(option.required());
optionMeta.setPromptType(option.type());
optionMeta.setCompleterType(option.completer());
}
else if (annotation instanceof PipeIn)
{
optionMeta.setPipeIn(true);