diff --git a/BaseTools/Source/Python/Capsule/GenerateCapsule.py b/BaseTools/Source/Python/Capsule/GenerateCapsule.py index 34337b2710..3c641bdca7 100644 --- a/BaseTools/Source/Python/Capsule/GenerateCapsule.py +++ b/BaseTools/Source/Python/Capsule/GenerateCapsule.py @@ -339,6 +339,10 @@ if __name__ == '__main__': args.OpenSslOtherPublicCertFile = args.OpenSslOtherPublicCertFile.name args.OpenSslTrustedPublicCertFile = args.OpenSslTrustedPublicCertFile.name + if args.DumpInfo: + if args.OutputFile is not None: + parser.error ('the following option is not supported for dumpinfo operations: --output') + # # Read binary input file #