mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 06:27:16 +02:00
Add datatype to param()
This commit is contained in:
@ -11,10 +11,11 @@
|
||||
Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
param($Abbreviation = "")
|
||||
if ($Abbreviation -eq "" ) { $Abbreviation = read-host "Enter the abbreviation" }
|
||||
param([string]$Abbreviation = "")
|
||||
|
||||
try {
|
||||
if ($Abbreviation -eq "" ) { $Abbreviation = read-host "Enter the abbreviation" }
|
||||
|
||||
write-progress "Searching ..."
|
||||
|
||||
$FoundOne = $false
|
||||
|
Reference in New Issue
Block a user