Add keywords-to-leave-unchanged.
@@ -131,6 +131,12 @@ def dicom_anonymise_directory(dicom_subparsers):
"identifying elements in the anonymised DICOM files, "
"as opposed to replacing them with 'dummy' values."))
+ parser.add_argument(
+ '-k', '--keywords_to_leave_unchanged', type=str, nargs='*',
+ help=("A space-separated list of DICOM keywords (e.g. "
+ "'PatientName') to exclude from anonymisation and "
+ "error checking."))
+
parser.add_argument(
'-p', '--keep_private_tags',
action='store_true',
