Skip to content

Conversation

@janheini
Copy link
Contributor

The combination of "store_true" and setting a default made it impossible to disable the auto-reloading if the default (settings.DEBUG) is true.

Using BooleanOptionalAction a '--no-reload' flag is added.

Best regards,
Jan

The combination of "store_true" and setting a default made it impossible
to disable the auto-reloading if the default (settings.DEBUG) is true.
Copy link
Owner

@RealOrangeOne RealOrangeOne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about BooleanOptionalAction - I agree this is much nicer!

@RealOrangeOne RealOrangeOne merged commit 2130235 into RealOrangeOne:master Jun 19, 2025
60 checks passed
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.

2 participants