()
Print list of available formats (arguments to "--format" option).
Print list of available formats (arguments to "--format" option).
Print list of available formats ( arguments to -- format option ) .
def show_formats():
    """Print list of available formats (arguments to "--format" option).
    """
    from distutils.fancy_getopt import FancyGetopt
    formats = []
    for format in bdist.format_commands:
        formats.append(("formats=" + format, None,
                        bdist.format_command[format][1]))
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help("List of available distribution formats:")
def show_formats ( ) : from distutils . fancy_getopt import FancyGetopt formats = [ ] for format in bdist . format_commands : formats . append ( ( "formats=" + format , None , bdist . format_command [ format ] [ 1 ] ) ) pretty_printer = FancyGetopt ( formats ) pretty_printer . print_help ( "List of available distribution formats:" )