I want to pass boolean values (True/False) from the command line using argparse module, but the value is treated as a string. I am using the following way to pass boolean values. How can I make it work?
parser.add_argument("-trim_results", type=bool, choices=[True, False], default=True,
help="want to trim the results?")