Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

add support for boolean params#108

Open
alcinos wants to merge 1 commit intofacebookresearch:mainfrom
alcinos:boolean_support
Open

add support for boolean params#108
alcinos wants to merge 1 commit intofacebookresearch:mainfrom
alcinos:boolean_support

Conversation

@alcinos
Copy link

@alcinos alcinos commented Jul 3, 2018

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
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants