How do I avoid the capital placeholders in python's argparse module?

前端 未结 2 1126
执笔经年
执笔经年 2020-12-16 05:14

There was a question that asked where they come from, and the accepted answer was a bunch of links to tutorials and source code. Explanation for argparse python modul behavi

2条回答
  •  醉酒成梦
    2020-12-16 05:47

    parser.add_argument('-c', '--chunksize', metavar='\b', type=int, help='chunk size in bits')
    

    seems to work

提交回复
热议问题