Skip to content

Commit

Permalink
chore: add explain-error argument
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGuadrini committed Jan 28, 2025
1 parent 15dad04 commit 316dddd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,13 @@ def parse_arguments():
dest="color",
action="store_true",
)
parent_parser.add_argument(
"--explain-error",
"-x",
help="Print python traceback",
dest="error",
action="store_true",
)

# Create principal parser
description = "Butterfly Backup"
Expand Down Expand Up @@ -2650,7 +2657,7 @@ def main():
)

except Exception as err:
utility.report_issue(err, False)
utility.report_issue(err, args.error)


if __name__ == "__main__":
Expand Down

0 comments on commit 316dddd

Please sign in to comment.