private AeshCommandLineParser generateParser() throws CommandLineParserException {
if(command == null)
throw new CommandLineParserException("Command object is null, cannot create command");
ProcessedCommand processedCommand = generateProcessedCommand();
AeshCommandLineParser parser = new AeshCommandLineParser(processedCommand, command);
if(children != null) {
for(CommandBuilder builder : children) {
parser.addChildParser(builder.generateParser());
}
}
return parser;
}