tool.ps1 - support commands with 0 args

No such commands atm though.
This commit is contained in:
Andrej730
2026-02-09 12:12:37 +05:00
parent dcac336b98
commit 54a6fb651e
+6 -1
View File
@@ -223,7 +223,12 @@ function main {
& setup_build_cfg & setup_build_cfg
# Dispatch command. # Dispatch command.
$command = $Args[0] $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 & $command @command_args
} }