How do I format positional argument help using Python's optparse?

后端 未结 4 1249
刺人心
刺人心 2021-02-02 09:57

As mentioned in the docs the optparse.OptionParser uses an IndentedHelpFormatter to output the formatted option help, for which which I found some API

4条回答
  •  囚心锁ツ
    2021-02-02 10:37

    Try taking a look at argparse. Documentation says it supports position arguments and nicer looking help messages.

提交回复
热议问题