Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix --no-color #1392

Merged
merged 2 commits into from
Sep 18, 2024
Merged

fix --no-color #1392

merged 2 commits into from
Sep 18, 2024

Conversation

zrquan
Copy link
Contributor

@zrquan zrquan commented Sep 13, 2024

Description

Since the action of --no-color is store_false, we can't use or directly.

Requirements

  • Add your name to CONTRIBUTORS.md
  • If this is a new feature, then please add some additional information about it to CHANGELOG.md

@shelld3v shelld3v merged commit a244715 into maurosoria:master Sep 18, 2024
3 of 7 checks passed
@@ -353,7 +353,7 @@ def parse_config(opt):

# View
opt.full_url = opt.full_url or config.safe_getboolean("view", "full-url")
opt.color = opt.color if opt.color is False else config.safe_getboolean("view", "color", True)
opt.color = opt.color and config.safe_getboolean("view", "color", True)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The default value of opt.color is None, not True.

@zrquan zrquan deleted the patch-1 branch October 3, 2024 10:14
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