mirror of
https://github.com/VSadov/Satori.git
synced 2025-06-08 03:27:04 +09:00
Print help for -? and /? cross-plat (#42396)
* Print help for -? and /? cross-plat
This commit is contained in:
parent
7c3d2384f3
commit
ae6744a5a8
3 changed files with 3 additions and 2 deletions
|
@ -3,6 +3,7 @@ setlocal
|
||||||
|
|
||||||
set _args=%*
|
set _args=%*
|
||||||
if "%~1"=="-?" set _args=-help
|
if "%~1"=="-?" set _args=-help
|
||||||
|
if "%~1"=="/?" set _args=-help
|
||||||
|
|
||||||
powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0eng\build.ps1'" %_args%
|
powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0eng\build.ps1'" %_args%
|
||||||
exit /b %ERRORLEVEL%
|
exit /b %ERRORLEVEL%
|
||||||
|
|
|
@ -103,7 +103,7 @@ function Get-Help() {
|
||||||
Write-Host "For more information, check out https://github.com/dotnet/runtime/blob/master/docs/workflow/README.md"
|
Write-Host "For more information, check out https://github.com/dotnet/runtime/blob/master/docs/workflow/README.md"
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($help -or (($null -ne $properties) -and ($properties.Contains('/help') -or $properties.Contains('/?')))) {
|
if ($help) {
|
||||||
Get-Help
|
Get-Help
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ while [[ $# > 0 ]]; do
|
||||||
firstArgumentChecked=1
|
firstArgumentChecked=1
|
||||||
|
|
||||||
case "$opt" in
|
case "$opt" in
|
||||||
-help|-h)
|
-help|-h|-\?|/?)
|
||||||
usage
|
usage
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue