Don't echo "Invalid command" when using the version command with a parameter

This commit is contained in:
abcdefg30
2017-05-26 10:31:12 +02:00
committed by reaperrr
parent 83be37acaf
commit 057c201e85

View File

@@ -234,7 +234,13 @@ else
$command = $args
}
switch ($command)
$execute = $command
if ($command.Length -gt 1)
{
$execute = $command[0]
}
switch ($execute)
{
"all" { All-Command }
"dependencies" { Dependencies-Command }