Download Game! Currently 131 players and visitors. Last logged in:OmrilWimpyNumbertwoJosim

BatMUD Forums > Ideas-wanted > command argument variables

 
 
#1
07 Jul 2008 20:21
 
 
from 'help command'

OPTIONS
$* - Arguments to the command
$<n> - n'th argument to the command
$-<n> - From n'th argument to last argument
...


Could there be added:

$L<n> - n'th-from-last argument
$-L<n> - From first to n'th-from-last argument


So, with the comamnd:

foo aa bb cc dd ee

$1 => aa
$-2 => bb cc dd ee
$L1 => ee
$-L2 => aa bb cc dd


Thanks, --M

 
Rating:
2
Votes:
4
 
 
Marvin
1y, 166d, 0h, 18m, 40s old
Level:
73