Skip to content

Commit

Permalink
fixed issue with remaining args related to '-j' options
Browse files Browse the repository at this point in the history
  • Loading branch information
speckdavid committed Jul 19, 2024
1 parent 004c98b commit 9a833db
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ def parse_args():

if HAS_ARGCOMPLETE:
argcomplete.autocomplete(parser)
args = parser.parse_args()
args, unparsed_args = parser.parse_known_args()

if hasattr(args, "remaining_args"):
args.remaining_args += unparsed_args
else:
args.remaining_args = unparsed_args
return args


Expand Down Expand Up @@ -152,7 +157,7 @@ def split_args(args):
for arg in args.arguments:
if arg in CONFIGS:
args.config_names.append(arg)
else:
elif arg != "--":
args.build_parameters.append(arg)

if args.debug:
Expand Down

0 comments on commit 9a833db

Please sign in to comment.