Hi
I'm using docopt and have an empty argument that is nil. echo args["--wid"] gives nil args["--wid"] == nil gives a compile time error
thanks
Yea, that part is rather misleading, but it's due to how docopt convert that to string. Looks the the correct way to check for that is:
if args["--wid"].kind == vkNone
or
if not args["--wid"] # vkNone values are converted to false implicitly
Solved. Great. Works. Thank you.
Just starting nim. Enjoying myself.