mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
tool.ps1 - support commands with 0 args
No such commands atm though.
This commit is contained in:
+6
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user