From c9369b2a92e575befd35c54ca38624d73269ddb7 Mon Sep 17 00:00:00 2001 From: robcxyz Date: Mon, 17 Jul 2023 20:42:56 +0700 Subject: [PATCH] fix: regression in how args are parsed in main --- tackle/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tackle/main.py b/tackle/main.py index 73f4ee86b..e7cf59939 100644 --- a/tackle/main.py +++ b/tackle/main.py @@ -42,8 +42,9 @@ def tackle( kwargs['input_string'] = args[0] if len(args) != 1: kwargs['global_args'] = [] - for i in args: - kwargs['global_args'].append(i) + for i in range(1, len(args)): + # Append all but the first arg which is parsed separately + kwargs['global_args'].append(args[i]) # Handle empty calls which fallback to finding the closest tackle file # in the parent directory