ELF icon indicating copy to clipboard operation
ELF copied to clipboard

add support for boolean params

Open alcinos opened this issue 7 years ago • 2 comments

This simple PR add supports for boolean parameters in the argument parser.

This enables to use the following kind of argument declaration ("bool_flag", dict(type='bool', default=False , help="Example boolean flag"))

Then the corresponding command line would look like: python my_script.py --bool_flag 1

alcinos avatar Jul 03 '18 12:07 alcinos

Thank you for your pull request. We require contributors to sign our Contributor License Agreement, and yours has expired.

Before we can review or merge your code, we need you to email [email protected] with your details so we can update your status.

facebook-github-bot avatar Jul 25 '18 20:07 facebook-github-bot

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

facebook-github-bot avatar Oct 11 '20 15:10 facebook-github-bot