Changeset 47 for trunk


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

added options to enable/disable header row

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/reglookup.1.t2t

    r45 r47  
    2929                     RSRC_LIST,RSRC_DESC,RSRC_REQ_LIST,KEY
    3030
     31        -h      Enables the printing of a column header row. (default)
     32
     33        -H      Disables the printing of a column header row.
     34
    3135        -s      Adds four additional columns to output containing
    3236                information from key security descriptors.  The columns
     
    3539
    3640        -S      Disables the printing of security descriptor
    37                 information.
     41                information. (default)
    3842
    3943        -v      Verbose output.
  • 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.