草庐IT

farmersmarket

全部标签

python - Docopt:重复元素后的选项被解释为重复元素

我正在使用docopt在我的简单Python程序中:#!/usr/bin/envpython"""FarmersmarketUsage:farmersmarket.pybuy-i-q[][-p][-dvh]farmersmarket.py-d|--debugfarmersmarket.py-v|--versionfarmersmarket.py-h|--helpOptions:-i--itemItem.-q--quantityQuantity.-p--pricePrice.-d--debugShowdebugmessages.-h--helpShowthisscreen.-v--ver