Much more helpful help.

This commit is contained in:
Ian Gulliver
2016-02-17 16:04:11 -08:00
parent 5fd120baec
commit 8e2e7b2562
5 changed files with 88 additions and 53 deletions

View File

@@ -178,3 +178,10 @@ static bool backend_autodetect_parse(struct backend *backend, struct packet *pac
}
return false;
}
void backend_print_usage() {
fprintf(stderr, "\nSupported input formats (autodetected):\n");
for (int i = 0; i < NUM_PARSERS; i++) {
fprintf(stderr, "\t%s\n", parsers[i].name);
}
}