fixed ps scripts

This commit is contained in:
Reynold Lariza
2025-08-28 22:30:40 +08:00
parent 833eb9448a
commit f250f81753
6 changed files with 313 additions and 447 deletions

View File

@@ -36,26 +36,15 @@
#>
param(
[Parameter(ParameterSetName="File")]
[string]$fl,
[Parameter(ParameterSetName="Code")]
[string]$code,
[Parameter(ParameterSetName="File")]
[Parameter(ParameterSetName="Code")]
[string]$to,
[Parameter(ParameterSetName="File")]
[Parameter(ParameterSetName="Code")]
[switch]$ve,
[Parameter(ParameterSetName="Help", Mandatory=$true)]
[switch]$hp
)
# Show help if requested
if ($hp) {
# Show help if no parameters provided or help requested
if ($hp -or (-not $fl -and -not $code)) {
Get-Help $MyInvocation.MyCommand.Path -Detailed
exit 0
}