Skip to content

Commit

Permalink
chore(windows): update installer
Browse files Browse the repository at this point in the history
Signed-off-by: Xin Liu <[email protected]>
  • Loading branch information
apepkuss committed Jul 31, 2024
1 parent cff62e4 commit cf8b255
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down Expand Up @@ -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 @"
Expand Down

0 comments on commit cf8b255

Please sign in to comment.