From 1034a9749f377d7e11393bf0bf7d1454a113ba87 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Fri, 23 Aug 2024 14:13:45 +0200 Subject: [PATCH] global_platform: fix help description for establish_scp03 The argument parser object for establish_scp03 (est_scp03_parser) is copied from est_scp02_parser. This object still has the .description property set, which is the description for establish_scp02. To get the description string that is defined in do_establish_scp03, we must remove the old description string first. Related: OS#6531 Change-Id: Ibb26bddf88b2e644a7f0c6b2a06bde228aa8afc7 --- pySim/global_platform/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pySim/global_platform/__init__.py b/pySim/global_platform/__init__.py index 075a1893..ecdc6b30 100644 --- a/pySim/global_platform/__init__.py +++ b/pySim/global_platform/__init__.py @@ -830,6 +830,7 @@ class ADF_SD(CardADF): self._establish_scp(scp02, host_challenge, opts.security_level) est_scp03_parser = deepcopy(est_scp02_parser) + est_scp03_parser.description = None est_scp03_parser.add_argument('--s16-mode', action='store_true', help='S16 mode (S8 is default)') @cmd2.with_argparser(est_scp03_parser)