Python Can the command-line arguments required set different depending on the condition?

前端 未结 0 679
日久生厌
日久生厌 2021-02-04 10:15

I use argparse for command-line arguments

But required arguments is differ by condition.

For example, first parameter is --o.

When --o is 1, required argume

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