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

add support for boolean params #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 [email protected] 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