File tree Expand file tree Collapse file tree 5 files changed +28
-14
lines changed Expand file tree Collapse file tree 5 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 1
1
@ echo off
2
+ setlocal
2
3
3
- if " %~1 " == " -h" goto help
4
- if " %~1 " == " -help" goto help
5
- if " %~1 " == " -?" goto help
6
- if " %~1 " == " /?" goto help
4
+ set _args = %*
5
+ if " %~1 " == " -?" set _args = -help
7
6
8
- powershell -ExecutionPolicy ByPass -NoProfile -File " %~dp0 eng\build.ps1" %*
9
- goto end
10
-
11
- :help
12
- powershell -ExecutionPolicy ByPass -NoProfile -Command " & { . '%~dp0 eng\build.ps1'; Get-Help }"
13
-
14
- :end
7
+ powershell -ExecutionPolicy ByPass -NoProfile -File " %~dp0 eng\build.ps1" %_args%
15
8
exit /b %ERRORLEVEL%
Original file line number Diff line number Diff line change 1
1
@ echo off
2
- " %~dp0 build.cmd" -subsetCategory coreclr %*
2
+ setlocal
3
+
4
+ set _args = -subsetCategory coreclr %*
5
+ if " %~1 " == " -?" set _args = -help
6
+
7
+ " %~dp0 build.cmd" %_args%
Original file line number Diff line number Diff line change 1
1
[CmdletBinding (PositionalBinding = $false )]
2
2
Param (
3
+ [switch ][Alias (' h' )]$help ,
3
4
[switch ][Alias (' b' )]$build ,
4
5
[switch ][Alias (' t' )]$test ,
5
6
[switch ]$buildtests ,
@@ -57,6 +58,11 @@ if ($MyInvocation.InvocationName -eq ".") {
57
58
exit 0
58
59
}
59
60
61
+ if ($help -or (($null -ne $properties ) -and ($properties.Contains (' /help' ) -or $properties.Contains (' /?' )))) {
62
+ Get-Help
63
+ exit 0
64
+ }
65
+
60
66
$subsetCategory = $subsetCategory.ToLowerInvariant ()
61
67
62
68
# VS Test Explorer support for libraries
Original file line number Diff line number Diff line change 1
1
@ echo off
2
- " %~dp0 build.cmd" -subsetCategory installer %*
2
+ setlocal
3
+
4
+ set _args = -subsetCategory installer %*
5
+ if " %~1 " == " -?" set _args = -help
6
+
7
+ " %~dp0 build.cmd" %_args%
Original file line number Diff line number Diff line change 1
1
@ echo off
2
- " %~dp0 build.cmd" -subsetCategory libraries %*
2
+ setlocal
3
+
4
+ set _args = -subsetCategory libraries %*
5
+ if " %~1 " == " -?" set _args = -help
6
+
7
+ " %~dp0 build.cmd" %_args%
You can’t perform that action at this time.
0 commit comments