powershell parameter
write-host "There are a total of $($args.count) arguments"
for ( $i = 0; $i -lt $args.count; $i++ ) {
write-host "Argument $i is $($args[$i])"
}
Param (
[Parameter(Mandatory=$True, Position=1)]
[string]$String,
[Parameter(Mandatory=$True)]
[int]$Int,
[switch]$Switch = $false
)function Print-Text {
param(
[String] $Text
)
Write-Output $Text
}
Print-Text "Hello, world!"
Also in Shell:
- install redux
- pip upgrade package
- fatal: refusing to merge unrelated histories
- linux ram drive
- no ip raspberry manually update
- homebrew postgres
- git diff with remote branch
- pyinstaller statsmodels
- vim compare 2 files
- how to get application guid powershell
- cordova ios emulators
- git remove folder form past all commits
- command to install react cli
- how to add font icon in gatsby
- run bat file with arguments
- how to delete services in kubernetes
- git commit expanded message
- extract .gz file linux
- git remove folder remotely
- random in mac terminal
- set feh wallpaper
- simple nodejs dockerfile
- mkdir linux
- How to check the installed version of React-Native