Files
Kmake/test/fixtures/run-script/node_modules/.bin/positional-args.bat

16 lines
290 B
Batchfile
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
@echo off
setlocal enabledelayedexpansion
set argv=0
set "output="
for %%x in (%*) do (
Set /A argv+=1
if "!output!" == "" (
Set "output=%%~x"
) else (
Set "output=!output! %%~x"
)
)
@echo Raw '%*'
@echo Arguments: '%output%'
@echo The total number of arguments are: %argv%