小编kit*_*.eb的帖子

为什么我的docopt选项没有默认值?

docopt在一个示例中使用我正在处理的模块,并且所有选项默认值都在工作,除了一个.我已经修改了包含和围绕该选项的所有代码,试图找出问题,但它不会采用默认值!

我的选项块看起来像这样:

Options:
  --help                       Show this message and exit
  --version                    Show version info and exit
  -w WIDTH --width=WIDTH       The out to out width of the deck (feet) [default: 73]
  -g GIRDERS --girders=GIRDERS The number of girders [default: 8]
  -h HEIGHT --height=HEIGHT    The height of the girders (inches) [default: 56]
  -t THICK --thick=THICK       The deck thickness (inches) [default: 8]
  -a ADIM --adim=ADIM          The "A" dimension, max deck thick @ CL girder [default: 12]
  -l LSLP --leftslope=LSLP     The left-hand deck …
Run Code Online (Sandbox Code Playgroud)

python docopt

20
推荐指数
1
解决办法
4420
查看次数

标签 统计

docopt ×1

python ×1