I am trying to use docopt for a python code. I actually need to set only specific values for a parameter. My usage is as below:
"""
Usage:
test.py --list=(all|available)
Options:
list Choice to list devices (all / available)
"""
I've tried to run it as: python test.py --list=all
but it doesn't accept the value and just displays the docopt string .
I want the value of list parameter to be either 'all' or 'available'. Is there any way this can be achieved?