SharpHound icon indicating copy to clipboard operation
SharpHound copied to clipboard

Update Template.ps1

Open mwilco03 opened this issue 2 years ago • 1 comments

What changed: Using the built in $PSBoundParameters dynamically enumerate over the flags provided.

Why: In doing so it prevents numerous conditional if statements, in conjunction with that allows for future variables to be implemented without additional conditional statements. It also allows for cleaner code.

Thank you for your consideration.

mwilco03 avatar Jul 19 '22 16:07 mwilco03

Man, I really wish I had known about this before. Thanks for the MR

rvazarkar avatar Jul 26 '22 15:07 rvazarkar

Cleaning up some history stuff, is it possible to get this merged?

mwilco03 avatar Apr 19 '23 14:04 mwilco03

Thanks for your contribution @mwilco03! Will be included in next release

JonasBK avatar May 08 '23 18:05 JonasBK