Skip to content

Commit

Permalink
fix: regression in how args are parsed in main
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Jul 17, 2023
1 parent b62af17 commit c9369b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tackle/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9369b2

Please sign in to comment.