JustinGrote / SecretManagement.KeePass

MIT License
116 stars 22 forks source link

Syntax question on VerbosePreference in Test-SecretVault #33

Closed DonPwrShellHunt closed 3 years ago

DonPwrShellHunt commented 3 years ago

The following code snippet is from Test-SecretVault.ps1

    if ($AdditionalParameters.Verbose) {
        $VerbosePreference = $true
    }

I think the proper value would be 'Continue' rather than $true, right?

Interactively I get the following>

PS> $VerbosePreference = $true MetadataError: Cannot convert value "True" to type "System.Management.Automation.ActionPreference". Error: "Invalid cast from 'System.Boolean' to 'System.Management.Automation.ActionPreference'."

JustinGrote commented 3 years ago

@DonPwrShellHunt you are correct! This was a flowdown preference from secretmanagement I only gave a half-effort to, I'll put this on the to-fix list.