def cmd_help(self, argv, help):
parser = argparse.ArgumentParser(<EOL>prog="<STR_LIT>" % self.progname,<EOL>description=help,<EOL>)<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>action='<STR_LIT:store_true>',<EOL>help="<STR_LIT>")<EOL>parser.add_argument("<STR_LIT>", nargs='<STR_LIT:?>',<EOL>metavar="<STR_LIT>",<EOL>help="<STR_LIT>",<EOL>choices=self.subparsers.keys())<EOL>args = parser.parse_args(argv)<EOL>if args.zsh:<EOL><INDENT>if args.command is None:<EOL><INDENT>for cmd in self.subparsers.keys():<EOL><INDENT>print(cmd)<EOL><DEDENT><DEDENT>else:  <EOL><INDENT>if hasattr(self.cmds[args.command], '<STR_LIT>'):<EOL><INDENT>for item in self.cmds[args.command].get_completion():<EOL><INDENT>print(item)<EOL><DEDENT><DEDENT>elif args.command in ('<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>for instance in self.get_instances(command='<STR_LIT>'):<EOL><INDENT>print(instance)<EOL><DEDENT><DEDENT>elif args.command == '<STR_LIT>':<EOL><INDENT>for instance in sorted(self.instances):<EOL><INDENT>print(instance)<EOL><DEDENT><DEDENT>elif args.command == '<STR_LIT:list>':<EOL><INDENT>for subcmd in sorted(self.list_cmds):<EOL><INDENT>print(subcmd)<EOL><DEDENT><DEDENT>elif args.command != '<STR_LIT>':<EOL><INDENT>for instance in sorted(self.get_instances(command=args.command)):<EOL><INDENT>print(instance)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>if args.command is None:<EOL><INDENT>parser.print_help()<EOL><DEDENT>else:<EOL><INDENT>cmd = self.cmds[args.command]<EOL>cmd(['<STR_LIT>'], cmd.__doc__)<EOL><DEDENT><DEDENT>
Print help