Skip to content

fix: add global debug flag to suppress traceback unless -d/--debug specified (ENG-3817)#54

Merged
goodwillstack merged 2 commits intomainfrom
goodwill/fix/debug-flag
Feb 13, 2025
Merged

fix: add global debug flag to suppress traceback unless -d/--debug specified (ENG-3817)#54
goodwillstack merged 2 commits intomainfrom
goodwill/fix/debug-flag

Conversation

@goodwillstack
Copy link
Contributor

  • Add very top level -d/--debug flag that will catch all the errors and will print exceptions, otherwise it will print the human friendly messages

Still -d / --debug flag is valid flag we define for click so it can be used else where
"""
argv = sys.argv.copy()
argv = argv[1:]
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't really need to copy the args, since you're not changing the list?

Copy link
Contributor

@albertodonato albertodonato left a comment

Choose a reason for hiding this comment

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

LGTM, +1

@goodwillstack goodwillstack merged commit 547868c into main Feb 13, 2025
6 checks passed
@goodwillstack goodwillstack deleted the goodwill/fix/debug-flag branch February 13, 2025 17:52
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