Skip to content

Commit

Permalink
Add the ability to configure the input directory
Browse files Browse the repository at this point in the history
This allows configuring the input directory path for the vdp_scanner.py
script. The default value for this argument is the previously hard-
coded value to maintain expected functionality.
  • Loading branch information
mcdonnnj committed Apr 12, 2024
1 parent ee1cd63 commit 0c25706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vdp_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
-h, --help Show this help message.
-v, --version Show script version.
-d, --debug Enable debugging output.
-i, --input-dir=INPUT_DIR Input directory path. [default: host_mount]
-o, --output-dir=OUTPUT_DIR Output directory path. [default: host_mount]
-a, --agency-csv=AGENCY_CSV Filename to use for agency results.
-t, --domain-csv=DOMAIN_CSV Filename to use for domain (TLD) results.
Expand Down Expand Up @@ -300,7 +301,7 @@ def main():
domains_to_scan: List[Dict[str, str]]

if args["local"]:
domains_to_scan = get_local_csv(path_join("host_mount", args["FILE"]))
domains_to_scan = get_local_csv(path_join(args["--input-dir"], args["FILE"]))

if args["github"]:
domains_to_scan = get_remote_csv()
Expand Down

0 comments on commit 0c25706

Please sign in to comment.