Error if using -d to enter studio windows
@@ -17,7 +17,6 @@ param (
[switch]$q,
[switch]$v,
[switch]$R,
- [switch]$D,
[string]$command,
[string]$commandVal,
[string]$k,
@@ -568,6 +567,10 @@ if(!(Test-InContainer)) {
}
try {
+ if ($args.Count -gt 0) {
+ Write-Help
+ Write-Error "Invalid Argument '$args'"
+ } else {
switch ($command) {
"new" { New-Studio }
"run" { Invoke-StudioRun $commandVal }
@@ -578,7 +581,8 @@ try {
"help" { Write-Help }
default {
Write-Help
- Write-Error "Invalid Argument $command"
+ Write-Error "Invalid Command '$command'"
+ }
}
}
} finally { $VerbosePreference = $currentVerbose }
