facebookresearch / ELF

An End-To-End, Lightweight and Flexible Platform for Game Research
Other
2.09k stars 286 forks source link

add support for boolean params #108

Open alcinos opened 6 years ago

alcinos commented 6 years ago

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

facebook-github-bot commented 6 years ago

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 cla@fb.com with your details so we can update your status.

facebook-github-bot commented 3 years ago

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