X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=BaseTools%2FSource%2FPython%2FPkcs7Sign%2FPkcs7Sign.py;fp=BaseTools%2FSource%2FPython%2FPkcs7Sign%2FPkcs7Sign.py;h=14e92a5d8b5fd7ad95b4a10a8b07cc11c5772429;hp=2fae8e577255d62be55bba40f73402a606f908e1;hb=60dc40db2aac3d84332dbb17b1d20e353bfceb0c;hpb=2e300969aeff5a863098242ebd95b7d653893262 diff --git a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py index 2fae8e5772..14e92a5d8b 100644 --- a/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py +++ b/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py @@ -75,8 +75,9 @@ if __name__ == '__main__': # # Create command line argument parser object # - parser = argparse.ArgumentParser(prog=__prog__, version=__version__, usage=__usage__, description=__copyright__, conflict_handler='resolve') + parser = argparse.ArgumentParser(prog=__prog__, usage=__usage__, description=__copyright__, conflict_handler='resolve') group = parser.add_mutually_exclusive_group(required=True) + group.add_argument("--version", action='version', version=__version__) group.add_argument("-e", action="store_true", dest='Encode', help='encode file') group.add_argument("-d", action="store_true", dest='Decode', help='decode file') parser.add_argument("-o", "--output", dest='OutputFile', type=str, metavar='filename', help="specify the output filename", required=True)