mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
Fix subtle type problem: M8 is required for early steps, datetime64[ns] later
This commit is contained in:
@@ -50,8 +50,25 @@ parser.add_argument('-f','--input-signature', metavar='input-signature', type=st
|
||||
'Options: LGTM, CLI\n'
|
||||
'If current represented signatures are not sufficient, view signature_single.py for how to support further signatures.'
|
||||
' Default: "%(default)s"')
|
||||
|
||||
parser.add_argument("-d", "--debug", action="store_true",
|
||||
help="Run inside IPython with --pdb for post-mortem debugging")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
import sys, pdb, traceback
|
||||
|
||||
def debug_excepthook(type, value, tb):
|
||||
traceback.print_exception(type, value, tb)
|
||||
print("\nEntering post-mortem debugger...\n")
|
||||
pdb.post_mortem(tb)
|
||||
|
||||
# XX:
|
||||
if args.debug:
|
||||
sys.excepthook = debug_excepthook
|
||||
|
||||
|
||||
if args.input_signature not in ["LGTM","CLI"]:
|
||||
print("Unsupported sarif signature requested.")
|
||||
print("Use one of [LGTM, CLI].")
|
||||
|
||||
Reference in New Issue
Block a user