Skip to content

fix: argparse type=bool incorrectly parses boolean flag - #74

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/02-draw-images-e5c2ae59
Open

fix: argparse type=bool incorrectly parses boolean flag#74
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/02-draw-images-e5c2ae59

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

This PR addresses the following issue in examples/02_draw_images.py: argparse type=bool incorrectly parses boolean flag.

Changes

  • examples/02_draw_images.py: argparse type=bool incorrectly parses boolean flag.

Details

Before:

parser.add_argument("--normals_enabled", type=bool, default=False)

After:

parser.add_argument("--normals_enabled", action="store_true")

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant