From cf8b25514ec25277fc07dd82d54be4a308aa11ff Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Wed, 31 Jul 2024 15:29:21 +0900 Subject: [PATCH] chore(windows): update installer Signed-off-by: Xin Liu --- install.ps1 | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/install.ps1 b/install.ps1 index c4cecd4..5db9a5c 100644 --- a/install.ps1 +++ b/install.ps1 @@ -122,12 +122,12 @@ while ($args.Count -gt 0) { exit 0 } '--help' { - print_usage + Print-Usage exit 0 } default { Write-Host "Unknown argument: $key" - print_usage + Print-Usage exit 1 } } @@ -209,20 +209,20 @@ function Show-Help { } } -param ( - [string[]]$args -) +# param ( +# [string[]]$args +# ) -if ($args -contains "--help") { - Show-Help - exit 0 -} +# if ($args -contains "--help") { +# Show-Help +# exit 0 +# } -# Example usage of other options -if ($args -contains "--version") { - Write-Output "Gaianet-node Installer v$version" - exit 0 -} +# # Example usage of other options +# if ($args -contains "--version") { +# Write-Output "Gaianet-node Installer v$version" +# exit 0 +# } # Write-Host "" # Write-Host @"