@termineter.cmd.command('<STR_LIT>')<EOL><INDENT>@termineter.cmd.argument('<STR_LIT>', choices=('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'), default='<STR_LIT>', nargs='<STR_LIT:?>', help='<STR_LIT>')<EOL>def do_show(self, args):<DEDENT>
self.print_line('<STR_LIT>')<EOL>if args.thing == '<STR_LIT>':<EOL><INDENT>self.print_line('<STR_LIT>' + os.linesep + '<STR_LIT>')<EOL>headers = ('<STR_LIT:Name>', '<STR_LIT>')<EOL>rows = [(module.path, module.description) for module in self.frmwk.modules.values()]<EOL><DEDENT>else:<EOL><INDENT>if self.frmwk.current_module and args.thing == '<STR_LIT>':<EOL><INDENT>options = self.frmwk.current_module.options<EOL>self.print_line('<STR_LIT>' + os.linesep + '<STR_LIT>')<EOL><DEDENT>if self.frmwk.current_module and args.thing == '<STR_LIT>':<EOL><INDENT>options = self.frmwk.current_module.advanced_options<EOL>self.print_line('<STR_LIT>' + os.linesep + '<STR_LIT>')<EOL><DEDENT>elif self.frmwk.current_module is None and args.thing == '<STR_LIT>':<EOL><INDENT>options = self.frmwk.options<EOL>self.print_line('<STR_LIT>' + os.linesep + '<STR_LIT>')<EOL><DEDENT>elif self.frmwk.current_module is None and args.thing == '<STR_LIT>':<EOL><INDENT>options = self.frmwk.advanced_options<EOL>self.print_line('<STR_LIT>' + os.linesep + '<STR_LIT>')<EOL><DEDENT>headers = ('<STR_LIT:Name>', '<STR_LIT>', '<STR_LIT>')<EOL>raw_options = [options.get_option(name) for name in options]<EOL>rows = [(option.name, str(option.value), option.help) for option in raw_options]<EOL><DEDENT>rows = sorted(rows, key=lambda row: row[<NUM_LIT:0>])<EOL>self.print_line('<STR_LIT>')<EOL>self.frmwk.print_table(rows, headers=headers, line_prefix='<STR_LIT:U+0020>')<EOL>self.print_line('<STR_LIT>')<EOL>return<EOL>
Valid parameters for the "show" command are: modules, options