1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 07:54:51 +00:00
Arsse/robo.bat

22 lines
362 B
Batchfile
Raw Normal View History

2017-12-08 20:15:20 +00: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 14:27:15 +00:00
if "%1"=="clean" (
2017-12-20 03:19:34 +00:00
call "%base%vendor\bin\robo" "%roboCommand%" %args%
2017-12-20 14:27:15 +00:00
) else (
call "%base%vendor\bin\robo" "%roboCommand%" -- %args%
2017-12-20 03:19:34 +00:00
)