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

后端 未结 0 1106
轮回少年
轮回少年 2021-02-12 06:47

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

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