With Python's optparse module, how do you create an option that takes a variable number of arguments?

后端 未结 6 2146
终归单人心
终归单人心 2021-02-13 19:38

With Perl\'s Getopt::Long you can easily define command-line options that take a variable number of arguments:

foo.pl --files a.txt             --ve         


        
6条回答
提交回复
热议问题