Arsse/robo.bat

22 lines
362 B
Batchfile
Raw Normal View History

2017-12-08 15:15:20 -05:00
@echo off
setlocal
set base=%~dp0
set roboCommand=%1
rem get all arguments except the first
shift
set "args="
:parse
if "%~1" neq "" (
set args=%args% %1
shift
goto :parse
)
if defined args set args=%args:~1%
2017-12-20 09:27:15 -05:00
if "%1"=="clean" (
2017-12-19 22:19:34 -05:00
call "%base%vendor\bin\robo" "%roboCommand%" %args%
2017-12-20 09:27:15 -05:00
) else (
call "%base%vendor\bin\robo" "%roboCommand%" -- %args%
2017-12-19 22:19:34 -05:00
)