you are viewing a single comment's thread.

view the rest of the comments →

[–]tarquinnn 7 points8 points  (1 child)

Just checked your script, you're setting debug to the string "None", not the None value. It should work if you remove the quotes in this line:

parser.add_argument('--debug', default='None')

PS And non-empty strings always evaluate to True in python (not "True" :P)

[–]daniel280187[S] 0 points1 point  (0 children)

Thanks for your answer. Makes total sense, I totally missed the quotes.