Closed HTWingNut closed 11 months ago
I set up parameters:
param ( [string]$path = "?", [string]$log = "?" )
This works
If I set up switch params with it:
param ( [string]$path = "?", [string]$log = "?", [switch]$create = $true )
It will return strings as switch and as "true" if assigned default value. If I remove the [string] declaration it works fine.
param ( $path = "?", $log = "?", [switch]$create = $true )
seems it's a powershell (and my) issue not ps2exe... sorry about that.
I set up parameters:
This works
If I set up switch params with it:
It will return strings as switch and as "true" if assigned default value. If I remove the [string] declaration it works fine.