エイリアスを介してのみパラメータが必要です:
script.ps1 -d site1 -c eac34b2d
これは許可されるべきではありません:
script.ps1 site1 eac34b2d
Param(
[parameter(Mandatory=$true)]
[alias("d")]
$DocRoot,
[alias("c")]
$Commit
)
エイリアスを介してのみパラメータが必要です:
script.ps1 -d site1 -c eac34b2d
これは許可されるべきではありません:
script.ps1 site1 eac34b2d
Param(
[parameter(Mandatory=$true)]
[alias("d")]
$DocRoot,
[alias("c")]
$Commit
)