diff --git a/pySim-shell.py b/pySim-shell.py index 5f4624c2..e596d11a 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -81,6 +81,14 @@ class PysimApp(cmd2.Cmd): pin_adm = sanitize_pin_adm(arg) self.card.verify_adm(h2b(pin_adm)) + @cmd2.with_category(CUSTOM_CATEGORY) + def do_desc(self, opts): + """Display human readable file description for the currently selected file""" + desc = self.rs.selected_file.desc + if desc: + self.poutput(desc) + else: + self.poutput("no description available") @with_default_category('ISO7816 Commands')