Skip to content

Commit

Permalink
Make arg parsing more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
timkimber committed Mar 27, 2024
1 parent 97c1449 commit 70beeb1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/run-test.cmd
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
@echo off
@echo on
IF %1.==. GOTO NoOS
SET OS=%1

:CheckCommand
IF %2.==. GOTO NoCmd
SET COMMAND=%2 %3

:CheckBats
IF NOT %3.==. GOTO CheckAlias
SET COMMAND=bats %2
IF NOT "%COMMAND:~5,12%"=="/getssl/test" SET COMMAND=bats /getssl/test/%2

:CheckAlias
REM check if OS *contains* staging
SET GETSSL_IDN_HOST=%OS%.xn--t-r1a81lydm69gz81r.test
Expand Down

0 comments on commit 70beeb1

Please sign in to comment.