Action action = (Action) clazz.newInstance();
ActionMetaData meta = new ActionMetaDataFactory().create(action.getClass());
Command cmd = meta.getCommand();
// skip the *-help command
if (cmd.scope().equals("*")) continue;
File output = new File(targetFolder, cmd.scope() + "-" + cmd.name() + "." + commandSuffix);
FileOutputStream outStream = new FileOutputStream(output);
PrintStream out = new PrintStream(outStream);
helpPrinter.printHelp(action, meta, out, includeHelpOption);