'print_help(file : file = stdout)
Print an extended help message, listing all options and any
help text provided with them, to \'file\' (default stdout).'

def print_help(self, file=None):

    if (file is None):
        file = sys.stdout
    encoding = self._get_encoding(file)
    file.write(self.format_help().encode(encoding, 'replace'))
