Skip to content

Distribution._show_help documentation #242

@DimitriPapadopoulos

Description

@DimitriPapadopoulos

According to its documentation, Distribution._show_help operates on its commands argument:

def _show_help(self, parser, global_options=1, display_options=1, commands=[]):

distutils/distutils/dist.py

Lines 633 to 635 in 38b58a5

the "display-only" options: --name, --version, etc. Finally,
lists per-command help for every command name or command class
in 'commands'.

However, I don't see commands used anywhere. Instead, I see Distribution._show_help iterate over its self.commands variable:

for command in self.commands:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions