File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
set _args = %*
5
5
if " %~1 " == " -?" set _args = -help
6
+ if " %~1 " == " /?" set _args = -help
6
7
7
8
powershell -ExecutionPolicy ByPass -NoProfile -Command " & '%~dp0 eng\build.ps1'" %_args%
8
9
exit /b %ERRORLEVEL%
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ function Get-Help() {
103
103
Write-Host " For more information, check out https://github.com/dotnet/runtime/blob/master/docs/workflow/README.md"
104
104
}
105
105
106
- if ($help -or (( $null -ne $properties ) -and ( $properties .Contains ( ' /help ' ) -or $properties .Contains ( ' /? ' ))) ) {
106
+ if ($help ) {
107
107
Get-Help
108
108
exit 0
109
109
}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ while [[ $# > 0 ]]; do
172
172
firstArgumentChecked=1
173
173
174
174
case " $opt " in
175
- -help|-h)
175
+ -help|-h|- \? |/ ? )
176
176
usage
177
177
exit 0
178
178
;;
You can’t perform that action at this time.
0 commit comments