Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage parameter requirement at params block level #19

Open
edouard-lopez opened this issue Apr 8, 2019 · 0 comments
Open

Manage parameter requirement at params block level #19

edouard-lopez opened this issue Apr 8, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@edouard-lopez
Copy link
Owner

chrisdent [13 h 46]
that'll let you test those without an end-user being able to poke them so easily :visage_légèrement_souriant:
$Error, $HelpMessage = Confirm-Arguments @PSBoundParameters if ($Error) { Write-Host $HelpMessage }
should throw (terminate). But I personally would want to kill off that function :visage_légèrement_souriant:
I'd want to move the parameter validation back into the parameter block. Perhaps using parameter sets, or something other than switches.

@edouard-lopez edouard-lopez added enhancement New feature or request help wanted Extra attention is needed labels Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant