¿Por qué mi opción docopt no tiene su valor predeterminado?
Estoy usandodocopt
en un ejemplo para un módulo en el que estoy trabajando, y todos los valores predeterminados de las opciones funcionan, excepto uno. He modificado todo el código que contiene y rodea la opción tratando de identificar el problema, ¡pero no tendrá un valor predeterminado!
Mi bloque de opciones se ve así:
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 slope (ft/ft) [default: -0.02]
-r RSLP --rightslope=RSLP The right-hand deck slope (ft/ft) [default: -0.02]
-c --center Indicates pivot point is at center of bridge
-o OFFSET --offset=OFFSET The offset of pivot point from center [default: 0]
losgirders
¡La opción nunca tiene un valor por defecto!
Yo releoesta pregunta Varias veces, pero parece sin relación.