Using docopt, is there a way to make a double-dashed parameter that works with and without an equals sign?
I want both of the following commands to make --tls be true:
cmd --tls
cmd --tls=true
I seem to only be able to get one or the other to work by using
Options:
--tls
or
Options:
--tls=false
Separating them by a comma does not seem to work
Options:
--tls, --tls=false
I have the same problem. I can't find a solution, but here's the best work-around I've got:
so argument options would be:
note that this is case sensitive, there may be bugs if you capitalize TLS: https://github.com/docopt/docopt/issues/460
another option:
sorry for all the edits, but here's one more:
This one gets you the --argument but can't have the = after the --argument