Order of the Butterfly
Posts: 220 from 2003/11/14
From: Bavaria
Hi,
a batch script with arguments looks like this:
Code:
.bra {
.ket }
.key NAME/A,LOCATION,AGE/N,MALE
echo My Name is {NAME}, I live in {LOCATION}.
if {MALE} eq YES
echo I'm a man
else
echo I'm a woman
endif
echo I'm {AGE} years old
So .key defines an argument template as known from other CLI programms.
.bra and .ket define how the arguments have to be enclosed with, when used. You don't need to use {} but can whatever you like.