diff --git a/documentation/tools/gen-cve-release-notes b/documentation/tools/gen-cve-release-notes
index 71d8fe502..84ac1a758 100755
--- a/documentation/tools/gen-cve-release-notes
+++ b/documentation/tools/gen-cve-release-notes
@@ -7,17 +7,22 @@
 # - the CVE status changes from Unpatched to Patched in the new report.
 # - the Unpatched CVE is unlisted in the new report.
 #
-# Reports can be found here: https://valkyrie.yocto.io/pub/non-release/?type=metrics
+# Reports can be found here: https://git.yoctoproject.org/yocto-metrics/plain/cve-check/
 
+import argparse
 import sys
 import json
 
-json_prev_path = sys.argv[1]
-json_next_path = sys.argv[2]
+parser = argparse.ArgumentParser(
+    description="Compare CVE reports between releases and output docs-formatted array"
+)
+parser.add_argument("json_prev_path", help="Path to the CVE report for the previous release")
+parser.add_argument("json_next_path", help="Path to the CVE report for the next release")
+args = parser.parse_args()
 
 data_prev, data_next = None, None
 
-with open(json_prev_path, 'r') as fd_prev, open(json_prev_path, 'r') as fd_next:
+with open(args.json_prev_path, 'r') as fd_prev, open(args.json_prev_path, 'r') as fd_next:
     data_prev = json.load(fd_prev)["package"]
     data_next = json.load(fd_next)["package"]
 
