Skip to content

Commit

Permalink
update help for scanner carving mode
Browse files Browse the repository at this point in the history
  • Loading branch information
simsong committed Apr 27, 2024
1 parent c3d7bcc commit 46f445f
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 46f445f

Please sign in to comment.