With Perl\'s Getopt::Long you can easily define command-line options that take a variable number of arguments:
Getopt::Long
foo.pl --files a.txt --ve
My mistake: just found this Callback Example 6.