parser.add_argument: error: unrecognized arguments: True

Viewed 1047

I have a program in python 2.7, which has a line of code:

parser.add_argument('--skip_train', default=False, help='skip training', action='store_true')

This code tells the program to run with training by default. But now I want to implement it without training since the training has been done. So I type in the prompt:

python myprogame.py --skip_train True

But this gives an error message:

error: unrecognized arguments: True

What should type in the prompt command to implement the program?

1 Answers
Related