| 71 | } |
| 72 | |
| 73 | void printOutputFormats() |
| 74 | { |
| 75 | vector<string> formats = OutputFormat::availableFormats(); |
| 76 | printf("Available output formats are:\n"); |
| 77 | for (int i=0;i<formats.size();i++) |
| 78 | { |
| 79 | const OutputFormat* f = OutputFormat::get(formats[i]); |
| 80 | printf("[%s] %s\n",formats[i].c_str(),f->getDescription().c_str()); |
| 81 | printf(" Parameters:\n"); |
| 82 | ParameterDescriptorList pList = f->getParameters(); |
| 83 | for (int p=0;p<pList.size();p++) { |
| 84 | printf(" - %s: %s (default=%s)\n", pList[p].m_identifier.c_str(), |
| 85 | pList[p].m_description.c_str(), pList[p].m_defaultValue.c_str()); |
| 86 | } |
| 87 | printf("\n"); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | struct arg_lit *h, *version, *verbose, *l; |
| 92 | struct arg_str *d, *libs, *outdir, *format, *formatparams; |
no test coverage detected