Flags parsing in PowerShell (vs. Unix) (2020)(jmmv.dev)
jmmv.dev
Flags parsing in PowerShell (vs. Unix) (2020)
https://jmmv.dev/2020/10/powershell-cmdlet-params.html
1 コメント
One thing that always puzzled me about PS is more cultural than technical, why on Earth would you use capitalised options? -Force rather than -f/--force, -Path rather than -p/--path. Is there some advantage that I just can't see?
That’s the convention but you can use aliases too as in this example https://stackoverflow.com/a/7264842