format output fields better

This commit is contained in:
Eric 2013-09-02 14:22:57 -04:00
parent b4c2a42a86
commit fde456e592

View File

@ -460,7 +460,7 @@ int main(int argc, char *argv[])
5); 5);
if (args.list_output_fields_given) { if (args.list_output_fields_given) {
for (int i = 0; i < fds->len; i++) { for (int i = 0; i < fds->len; i++) {
printf("%s (%s): %s\n", fds->fielddefs[i].name, printf("%-15s %6s: %s\n", fds->fielddefs[i].name,
fds->fielddefs[i].type, fds->fielddefs[i].type,
fds->fielddefs[i].desc); fds->fielddefs[i].desc);
} }