laforge submitted this change.
pySim/global_platform: Fix install_for_personalization command
A mix-up betewen underscore and dash resulted in:
Change-Id: I49d12b7c7ae2a343940e87d5069c0ae44a9bc50c
AttributeError: 'Namespace' object has no attribute 'application_aid'
---
M pySim/global_platform/__init__.py
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/pySim/global_platform/__init__.py b/pySim/global_platform/__init__.py
index 5086721..f440fd0 100644
--- a/pySim/global_platform/__init__.py
+++ b/pySim/global_platform/__init__.py
@@ -631,7 +631,7 @@
_data, _sw = self._cmd.lchan.scc.send_apdu_checksw(b2h(apdu))
inst_perso_parser = argparse.ArgumentParser()
- inst_perso_parser.add_argument('application-aid', type=is_hexstr, help='Application AID')
+ inst_perso_parser.add_argument('application_aid', type=is_hexstr, help='Application AID')
@cmd2.with_argparser(inst_perso_parser)
def do_install_for_personalization(self, opts):
To view, visit change 36924. To unsubscribe, or for help writing mail filters, visit settings.