Set up the Default Value for Boolean Option in Argparse
📝
内容提要
TL;DR If you want to set a parameter’s default value to True using argparse, use parser.add_argument('--param', action='store_false') Otherwise, use parser.add_argument('--param', action='store_true')
➡️