def format_help(self):
        """Overrides format_help to not print subparsers"""
        formatter = self._get_formatter()

        # usage
        formatter.add_usage(self.usage, self._actions,
                            self._mutually_exclusive_groups)

        # description
        formatter.add_text(self.description)

        # positionals, optionals and user-defined groups, except SubParsers
        for action_group in self._action_groups:
            if is_subparser(action_group):
                continue
            formatter.start_section(action_group.title)
            formatter.add_text(action_group.description)
            formatter.add_arguments(action_group._group_actions)
            formatter.end_section()

        # epilog
        formatter.add_text(self.epilog)

        # determine help from format above
        return formatter.format_help()
def format_help ( self ) : formatter = self . _get_formatter ( ) formatter . add_usage ( self . usage , self . _actions , self . _mutually_exclusive_groups ) formatter . add_text ( self . description ) for action_group in self . _action_groups : if is_subparser ( action_group ) : continue formatter . start_section ( action_group . title ) formatter . add_text ( action_group . description ) formatter . add_arguments ( action_group . _group_actions ) formatter . end_section ( ) formatter . add_text ( self . epilog ) return formatter . format_help ( )
Overrides format_help to not print subparsers