-@if not defined __echo @echo off
+@if not defined _echo @echo off
setlocal EnableDelayedExpansion
echo Running clean.cmd
:Loop
if [%1]==[] goto Begin
-if /I [%1] == [/?] goto Usage
-if /I [%1] == [/help] goto Usage
+if /I [%1] == [-?] goto Usage
+if /I [%1] == [-help] goto Usage
-if /I [%1] == [/p] (
+if /I [%1] == [-p] (
set packages=true
set thisArgs=!thisArgs!%1
goto Next
)
-if /I [%1] == [/b] (
+if /I [%1] == [-b] (
set bin=true
set thisArgs=!thisArgs!%1
goto Next
)
-if /I [%1] == [/t] (
+if /I [%1] == [-t] (
set tools=true
set thisArgs=!thisArgs!%1
goto Next
)
-if /I [%1] == [/all] (
+if /I [%1] == [-all] (
set tools=true
set bin=true
set packages=true
echo.
echo Repository cleaning script.
echo Options:
-echo /b - Cleans the bin directory
-echo /p - Cleans the packages directory
-echo /t - Cleans the tools directory
-echo /all - Cleans everything
+echo -b - Cleans the bin directory
+echo -p - Cleans the packages directory
+echo -t - Cleans the tools directory
+echo -all - Cleans everything
echo.
-echo If no option is specified then clean.cmd /b /p /t is implied.
+echo If no option is specified then clean.cmd -b -p -t is implied.
exit /b
\ No newline at end of file