From 54a6fb651eda365ee25662ec2ce639c05e7a2c30 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 9 Feb 2026 12:12:37 +0500 Subject: [PATCH] tool.ps1 - support commands with 0 args No such commands atm though. --- win/utils/tools.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/win/utils/tools.ps1 b/win/utils/tools.ps1 index 0e5cdadfc7..322e306651 100644 --- a/win/utils/tools.ps1 +++ b/win/utils/tools.ps1 @@ -223,7 +223,12 @@ function main { & setup_build_cfg # Dispatch command. $command = $Args[0] - $command_args = $Args[1..($args.Count - 1)] + if ($args.Count -gt 1) { + $command_args = $Args[1..($args.Count - 1)] + } + else { + $command_args = @() + } & $command @command_args }