Changeset 47 for trunk/src


Ignore:
Timestamp:
08/06/05 10:58:19 (19 years ago)
Author:
tim
Message:

added options to enable/disable header row

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/reglookup.c

    r46 r47  
    783783  fprintf(stderr, "Options:\n");
    784784  fprintf(stderr, "\t-v\t sets verbose mode.\n");
     785  fprintf(stderr, "\t-h\t enables header row. (default)\n");
     786  fprintf(stderr, "\t-H\t disables header row.\n");
    785787  fprintf(stderr, "\t-s\t enables security descriptor output.\n");
    786788  fprintf(stderr, "\t-S\t disables security descriptor output. (default)\n");
     
    837839      type_filter_enabled = true;
    838840    }
     841    else if (strcmp("-h", argv[argi]) == 0)
     842      print_header = true;
     843    else if (strcmp("-H", argv[argi]) == 0)
     844      print_header = false;
    839845    else if (strcmp("-s", argv[argi]) == 0)
    840846      print_security = true;
Note: See TracChangeset for help on using the changeset viewer.