自定义帮助格式化器

(类来自 pyomo.scripting.pyomo_parser)

class pyomo.scripting.pyomo_parser.CustomHelpFormatter(prog, indent_increment=2, max_help_position=24, width=None)[source]

基础类:RawDescriptionHelpFormatter

__init__(prog, indent_increment=2, max_help_position=24, width=None)

方法

__init__(prog[, indent_increment, ...])

add_argument(action)

add_arguments(actions)

add_text(text)

add_usage(usage, actions, groups[, prefix])

end_section()

format_help()

start_section(标题)

成员文档