private static PluginOption parsePluginOption(final Option option) {
        PluginOption po = new PluginOption();
        po.setArgName(option.argName());
        po.setArgsOptional(option.optionalArgs());
        po.setDescription(option.description());
        po.setHasArgs(option.hasArgs());
        po.setLongOpt(option.longName());
        po.setOption(option.shortName());
        po.setRequired(option.required());
        return po;

    }
private static PluginOption parsePluginOption ( final Option option ) { PluginOption po = new PluginOption ( ) ; po . setArgName ( option . argName ( ) ) ; po . setArgsOptional ( option . optionalArgs ( ) ) ; po . setDescription ( option . description ( ) ) ; po . setHasArgs ( option . hasArgs ( ) ) ; po . setLongOpt ( option . longName ( ) ) ; po . setOption ( option . shortName ( ) ) ; po . setRequired ( option . required ( ) ) ; return po ; }
Parses a plugin option from the annotation definition.

@param option
the plugin option

@return PluginOption