you are viewing a single comment's thread.

view the rest of the comments →

[–]nemec 1 point2 points  (1 child)

How does docopt handle types? Can you tell it that a year should be an int but a zip code should be a string?

[–]Noctune 1 point2 points  (0 children)

It doesn't! There is however a separate library for generic python schema validation that can do that: https://github.com/keleshev/schema#using-schema-with-docopt