-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Fix .cmd scripts help arguments #1043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,8 @@ | ||
| @echo off | ||
| setlocal | ||
|
|
||
| if "%~1"=="-h" goto help | ||
| if "%~1"=="-help" goto help | ||
| if "%~1"=="-?" goto help | ||
| if "%~1"=="/?" goto help | ||
| set _args="%*" | ||
| if "%~1"=="-?" set _args="-help" | ||
|
|
||
| powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %* | ||
| goto end | ||
|
|
||
| :help | ||
| powershell -ExecutionPolicy ByPass -NoProfile -Command "& { . '%~dp0eng\build.ps1'; Get-Help }" | ||
|
|
||
| :end | ||
| powershell -ExecutionPolicy ByPass -NoProfile -File "%~dp0eng\build.ps1" %_args% | ||
| exit /b %ERRORLEVEL% | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,7 @@ | ||
| @echo off | ||
| "%~dp0build.cmd" -subsetCategory coreclr %* | ||
| setlocal | ||
|
|
||
| set _args="-subsetCategory coreclr %*" | ||
| if "%~1"=="-?" set _args="-help" | ||
|
|
||
| "%~dp0build.cmd" %_args% |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| [CmdletBinding(PositionalBinding=$false)] | ||
| Param( | ||
| [switch][Alias('h')]$help, | ||
| [switch][Alias('b')]$build, | ||
| [switch][Alias('t')]$test, | ||
| [switch]$buildtests, | ||
|
|
@@ -57,6 +58,11 @@ if ($MyInvocation.InvocationName -eq ".") { | |
| exit 0 | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we still dot sourcing this script anywhere? If not, we can remove the if block.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmm I'm not sure about that. I don't think so. Would searching for
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm relatively sure that this is dead code and you can just remove it.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. Will remove it then.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||
|
|
||
| if ($help -or (($null -ne $properties) -and ($properties.Contains('/help') -or $properties.Contains('/?')))) { | ||
| Get-Help | ||
| exit 0 | ||
| } | ||
|
|
||
| $subsetCategory = $subsetCategory.ToLowerInvariant() | ||
|
|
||
| # VS Test Explorer support for libraries | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,7 @@ | ||
| @echo off | ||
| "%~dp0build.cmd" -subsetCategory installer %* | ||
| setlocal | ||
|
|
||
| set _args="-subsetCategory installer %*" | ||
| if "%~1"=="-?" set _args="-help" | ||
|
|
||
| "%~dp0build.cmd" %_args% |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,7 @@ | ||
| @echo off | ||
| "%~dp0build.cmd" -subsetCategory libraries %* | ||
| setlocal | ||
|
|
||
| set _args="-subsetCategory libraries %*" | ||
| if "%~1"=="-?" set _args="-help" | ||
|
|
||
| "%~dp0build.cmd" %_args% |
Uh oh!
There was an error while loading. Please reload this page.