CommandProperties commandProperties = new CommandProperties();
commandProperties.setClassName(cmd.getName());
commandProperties.setName(cmd.getAnnotation(CLICommand.class).value());
if (cmd.isAnnotationPresent(BeesCommand.class)) {
BeesCommand beesCommand = cmd.getAnnotation(BeesCommand.class);
if (beesCommand.experimental() && !all)
return;
commandProperties.setGroup(beesCommand.group());
if (beesCommand.description().length() > 0)
commandProperties.setDescription(beesCommand.description());
commandProperties.setPriority(beesCommand.priority());
if (beesCommand.pattern().length() > 0)
commandProperties.setPattern(beesCommand.pattern());
commandProperties.setExperimental(beesCommand.experimental());
} else {
try {
commandProperties.setGroup("CLI");
commandProperties.setPriority((Integer) BeesCommand.class.getMethod("priority").getDefaultValue());
commandProperties.setExperimental(false);