diff options
author | Antti-Juhani Kaijanaho <ajk@debian.org> | 2007-04-08 18:50:12 +0100 |
---|---|---|
committer | Antti-Juhani Kaijanaho <ajk@debian.org> | 2007-04-08 18:50:12 +0100 |
commit | 2acbd6b5b77a03eb00e59d16fdc62aa395cc06ed (patch) | |
tree | 2a5baa541ddfdd60aba63f1c0fe1104a3baec080 /tbl-dctrl/tbl-dctrl.c | |
parent | c1532928b65d8b1d90f35e7306740558d3d9c120 (diff) | |
download | dctrl-tools-2acbd6b5b77a03eb00e59d16fdc62aa395cc06ed.tar.gz |
grep-dctrl: new option --invert-show (-I)
Closes: #144174 (please provide a --filter-fields option of some sort)
Reported by Yann Dirson <dirson@debian.org>
Merged with #264905 (show all fields except FIELD,FIELD,...)
Reported by Dan Jacobson <jidanni@jidanni.org>
Diffstat (limited to 'tbl-dctrl/tbl-dctrl.c')
-rw-r--r-- | tbl-dctrl/tbl-dctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl-dctrl/tbl-dctrl.c b/tbl-dctrl/tbl-dctrl.c index aec0898..2801ddf 100644 --- a/tbl-dctrl/tbl-dctrl.c +++ b/tbl-dctrl/tbl-dctrl.c @@ -259,7 +259,7 @@ static error_t parse_opt (int key, char * arg, struct argp_state * state) if (fn != NULL) *(fn++) = '\0'; struct column *col = &args->columns[args->num_columns]; col->heading = carg; - col->field_inx = fieldtrie_insert(fn == NULL ? carg : fn); + col->field_inx = fieldtrie_insert(fn == NULL ? carg : fn)->inx; size_t n = 0; _Bool err = 0; for (char const *p = lens; *p != '\0'; p++) { @@ -417,7 +417,7 @@ int main(int argc, char * argv[]) FSAF * fp = fsaf_fdopen(fd, fname.s); para_parser_t pp; - para_parser_init(&pp, fp, true, false); + para_parser_init(&pp, fp, true, false, false); para_t para; para_init(&pp, ¶); while (1) { |