diff options
Diffstat (limited to 'src/main/extract.c')
-rw-r--r-- | src/main/extract.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/main/extract.c b/src/main/extract.c index c310eee..df7358c 100644 --- a/src/main/extract.c +++ b/src/main/extract.c | |||
@@ -176,8 +176,6 @@ printHelp () | |||
176 | gettext_noop("produce grep-friendly output (all results on one line per file)") }, | 176 | gettext_noop("produce grep-friendly output (all results on one line per file)") }, |
177 | { 'h', "help", NULL, | 177 | { 'h', "help", NULL, |
178 | gettext_noop("print this help") }, | 178 | gettext_noop("print this help") }, |
179 | { 'H', "hash", "ALGORITHM", | ||
180 | gettext_noop("compute hash using the given ALGORITHM (currently sha1 or md5)") }, | ||
181 | { 'i', "in-process", NULL, | 179 | { 'i', "in-process", NULL, |
182 | gettext_noop("run plugins in-process (simplifies debugging)") }, | 180 | gettext_noop("run plugins in-process (simplifies debugging)") }, |
183 | { 'l', "library", "LIBRARY", | 181 | { 'l', "library", "LIBRARY", |
@@ -552,7 +550,6 @@ main (int argc, char *argv[]) | |||
552 | int option_index; | 550 | int option_index; |
553 | int c; | 551 | int c; |
554 | char * libraries = NULL; | 552 | char * libraries = NULL; |
555 | char * hash = NULL; | ||
556 | int nodefault = NO; | 553 | int nodefault = NO; |
557 | int defaultAll = YES; | 554 | int defaultAll = YES; |
558 | int bibtex = NO; | 555 | int bibtex = NO; |
@@ -578,7 +575,6 @@ main (int argc, char *argv[]) | |||
578 | {"bibtex", 0, 0, 'b'}, | 575 | {"bibtex", 0, 0, 'b'}, |
579 | {"grep-friendly", 0, 0, 'g'}, | 576 | {"grep-friendly", 0, 0, 'g'}, |
580 | {"help", 0, 0, 'h'}, | 577 | {"help", 0, 0, 'h'}, |
581 | {"hash", 1, 0, 'H'}, | ||
582 | {"in-process", 0, 0, 'i'}, | 578 | {"in-process", 0, 0, 'i'}, |
583 | {"list", 0, 0, 'L'}, | 579 | {"list", 0, 0, 'L'}, |
584 | {"library", 1, 0, 'l'}, | 580 | {"library", 1, 0, 'l'}, |
@@ -592,7 +588,7 @@ main (int argc, char *argv[]) | |||
592 | option_index = 0; | 588 | option_index = 0; |
593 | c = getopt_long (argc, | 589 | c = getopt_long (argc, |
594 | argv, | 590 | argv, |
595 | "abghH:il:Lnp:vVx:", | 591 | "abghil:Lnp:vVx:", |
596 | long_options, | 592 | long_options, |
597 | &option_index); | 593 | &option_index); |
598 | 594 | ||
@@ -623,9 +619,6 @@ main (int argc, char *argv[]) | |||
623 | case 'h': | 619 | case 'h': |
624 | printHelp(); | 620 | printHelp(); |
625 | return 0; | 621 | return 0; |
626 | case 'H': | ||
627 | hash = optarg; | ||
628 | break; | ||
629 | case 'i': | 622 | case 'i': |
630 | in_process = 1; | 623 | in_process = 1; |
631 | break; | 624 | break; |
@@ -736,20 +729,6 @@ main (int argc, char *argv[]) | |||
736 | in_process | 729 | in_process |
737 | ? EXTRACTOR_OPTION_IN_PROCESS | 730 | ? EXTRACTOR_OPTION_IN_PROCESS |
738 | : EXTRACTOR_OPTION_DEFAULT_POLICY); | 731 | : EXTRACTOR_OPTION_DEFAULT_POLICY); |
739 | if (hash != NULL) | ||
740 | { | ||
741 | name = malloc(strlen(hash) + strlen("hash_") + 1); | ||
742 | strcpy(name, "libextractor_hash_"); | ||
743 | strcat(name, hash); | ||
744 | plugins = EXTRACTOR_plugin_add(plugins, | ||
745 | name, | ||
746 | NULL, | ||
747 | in_process | ||
748 | ? EXTRACTOR_OPTION_IN_PROCESS | ||
749 | : EXTRACTOR_OPTION_DEFAULT_POLICY); | ||
750 | free(name); | ||
751 | } | ||
752 | |||
753 | if (processor == NULL) | 732 | if (processor == NULL) |
754 | processor = &print_selected_keywords; | 733 | processor = &print_selected_keywords; |
755 | 734 | ||