def expand_default(self, option): ret = IndentedHelpFormatter.expand_default(self, option) if isinstance(option, ExpertOption): ret = "(Advanced) " + ret return ret.replace(self.choices_tag, ", ".join(option.choices or []))
def expand_default(self, option): ret = IndentedHelpFormatter.expand_default(self, option) if isinstance(option, ExpertOption): ret = "(Advanced) " + ret return ret.replace(self.choices_tag, ', '.join(option.choices or []))
def expand_default(self, option): help = IndentedHelpFormatter.expand_default(self, option) if callable(self.help_string_formatter): return self.help_string_formatter(help, option) return help
def expand_default(self, option): if hasattr(option, 'envvar') and hasattr(option, 'help'): option.help = option.help.replace(str(self.envvar_tag), "$" + str(option.envvar)) return IndentedHelpFormatter.expand_default(self, option)
def expand_default(self, option): help = IndentedHelpFormatter.expand_default(self, option) if callable(self.help_string_formatter): return self.help_string_formatter(help, option) return help