@Override
public CommandResult execute(CommandInvocation commandInvocation) throws IOException {
setCommandInvocation(commandInvocation);
if(manPages != null && manPages.size() > 0) {
try {
CommandContainer manCommand = registry.getCommand(manPages.get(0).getCommand(), null);
if(manCommand.getCommand() instanceof ManCommand) {
setFile(((ManCommand) manCommand.getCommand()).getManLocation().toString());
getCommandInvocation().attachConsoleCommand(this);
afterAttach();
}
} catch (CommandNotFoundException e) {
e.printStackTrace();