str to bool
(v)
| 22 | |
| 23 | |
| 24 | def str2bool(v): |
| 25 | """str to bool""" |
| 26 | # because argparse does not support to parse "true, False" as python |
| 27 | # boolean directly |
| 28 | return v.lower() in ("true", "t", "1") |
| 29 | |
| 30 | |
| 31 | class ArgumentGroup(object): |
nothing calls this directly
no outgoing calls
no test coverage detected