Skip to content

Commit

Permalink
Clean up docopt code
Browse files Browse the repository at this point in the history
Also prefer f-strings to string.format().

Co-authored-by: Nick <[email protected]>
  • Loading branch information
jsf9k and mcdonnnj committed Feb 14, 2022
1 parent 4e37afe commit 571f14a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/report/generate_https_scan_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""Create Cyber Hygiene HTTPS Report PDF.
Usage:
generate_https_scan_report [options] "AGENCY"
generate_https_scan_report [options] AGENCY
generate_https_scan_report (-h | --help)
generate_https_scan_report --version
Expand Down Expand Up @@ -914,8 +914,8 @@ def main():
args = docopt(__doc__, version="v0.0.1")
db = db_from_config(DB_CONFIG_FILE)

print("Generating HTTPS Report for {}...".format(args['"AGENCY"']))
generator = ReportGenerator(db, args['"AGENCY"'], debug=args["--debug"])
print(f"Generating HTTPS Report for {args['AGENCY']}...")
generator = ReportGenerator(db, args["AGENCY"], debug=args["--debug"])
generator.generate_https_scan_report()
print("Done")
sys.exit(0)
Expand Down

0 comments on commit 571f14a

Please sign in to comment.