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: show stack traces in debug mode #111

Merged
merged 1 commit into from
May 23, 2024

Conversation

rhizoome
Copy link

No description provided.

@rhizoome rhizoome requested a review from Melkor333 May 21, 2024 12:39
@rhizoome
Copy link
Author

@Yelinz thanks!

@rhizoome rhizoome merged commit 8e18167 into main May 23, 2024
1 check passed
@@ -19,12 +19,18 @@ def entry_point():
if len_argv > 0 and argv[0].endswith("pyaptly"):
if len_argv > 2 and argv[1] == "legacy" and argv[2] != "--":
argv = argv[:2] + ["--"] + argv[2:]
if "--debug" in argv or "-d" in argv:

Choose a reason for hiding this comment

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

minor: it's of course a matter of preference but you could make this a one liner: debug = "--debug" in argv or "-d" in argv

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.

3 participants