Skip to content

Commit

Permalink
Merge pull request #470 from simsong/dev-hotfix-nist-cfreds
Browse files Browse the repository at this point in the history
update help for scanner carving mode
  • Loading branch information
simsong authored Apr 27, 2024
2 parents 3b51a23 + 46f445f commit b2279ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/be20_api
5 changes: 4 additions & 1 deletion src/bulk_extractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,14 @@ int bulk_extractor_main( std::ostream &cout, std::ostream &cerr, int argc,char *
//sc.get_global_config( "write_feature_sqlite3",&opt_write_sqlite3,"Write feature files to report.sqlite3" );
sc.get_global_config( "report_read_errors",&cfg.opt_report_read_errors,"Report read errors" );

/* If we are getting help or info scanners, make a fake scanner set with new output directory */
/* If we are getting help or info scanners, make a fake scanner set with new output directory,
* then apply the scanner commands so we can get the feature recorders created...
*/
if ( result.count( "help" ) || result.count( "info_scanners" )) {
struct feature_recorder_set::flags_t f;
scanner_set ss( sc, f, nullptr); // make a scanner_set but with no XML writer. We will create it below
ss.add_scanners( scanners_builtin);
ss.apply_scanner_commands();

if ( result.count( "help" )) { // -h
cout << options.help() << std::endl;
Expand Down

0 comments on commit b2279ce

Please sign in to comment.