| 78 | } |
| 79 | |
| 80 | int main(int argc, char *argv[]) |
| 81 | { |
| 82 | int ch; |
| 83 | char filepath[256]; |
| 84 | |
| 85 | filepath[0] = 0; |
| 86 | |
| 87 | while ((ch = getopt(argc, argv, "hf:")) > 0) { |
| 88 | switch (ch) { |
| 89 | case 'h': |
| 90 | usage(argv[0]); |
| 91 | return (0); |
| 92 | case 'f': |
| 93 | snprintf(filepath, sizeof(filepath), "%s", optarg); |
| 94 | break; |
| 95 | default: |
| 96 | break; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | if (filepath[0] != 0) |
| 101 | parse_xml_file(filepath); |
| 102 | |
| 103 | return 0; |
| 104 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…