python argparse: How can I display help automatically on error?

后端 未结 0 924
孤街浪徒
孤街浪徒 2021-02-12 06:48

Currently when I enter invalid options or omit positional arguments, argparse kicks me back to the prompt and displays the usage for my app. This is ok, but I would rather auto

相关标签:
回答
  • 消灭零回复
提交回复
热议问题