【发布时间】:2013-05-23 08:29:54
【问题描述】:
我想使用Getopt::Long::GetOptions 来获取脚本的命令行选项。
我有这样的要求:
perl script.pl -c <name1> -c <name2> -m <name3> argument
这里我们有选项标志-c 和-mm 是可选的,argument 是强制性的。
谁能指出GetOptions 的正确用法?
【问题讨论】:
标签: shell perl command-line-tool