1

到目前为止,我正在使用以下构造

configure.pl <$ARGV[0]> <$ARGV[1]>

每个给定的参数可以是

+n = to increase the current service by n 
-n = to decrease the existing services by n
n = to create n number of services ( irrespective of the number of existing services )

我怀疑这是否是正确的构造,我在修复我应该为 nochange 拥有的东西方面也有问题(即现有服务应该继续)。

4

1 回答 1

1

只要记录在案,您建议的命令行界面就非常好。

GNU 编码标准建议提供长选项。除了Getopt::Long::Descriptive的短选项之外,很容易拥有这些选项。

--inc=n
+n
        to increase the current service by n

--dec=n
-n
        to decrease the existing services by n

--abs=n
n
        to create n number of services (irrespective of the number of existing services)

--no-op
        no change in operation, existing services continue as is
于 2013-07-09T12:10:40.603 回答