docopt.rb:仅从用法消息中解析命令行参数

时间:2021-04-29 05:02:50
【文件属性】:
文件名称:docopt.rb:仅从用法消息中解析命令行参数
文件大小:20KB
文件格式:ZIP
更新时间:2021-04-29 05:02:50
Ruby docopt.rb –命令行选项解析器,它将使您微笑 这是的ruby端口, 是最初用python编写的的选项解析器。 0.5.0版中的新功能: 如果重复(a-la ssh -vvv ),则对可重复的标志和命令进行计数。 带有参数的可重复选项将累积到列表中。 optparse和argparse如何根据您的代码生成帮助消息,这真棒吗? 一定不行! 你知道什么很棒吗? 这是当根据您自己编写美丽的帮助信息生成选项解析器! 这样,您无需编写此愚蠢的可重复解析器代码,而只需编写帮助消息(即所需的方式)即可。 docopt可帮助您轻松创建最漂亮的命令行界面: require "docopt" doc = <... #{ __FILE__ } ship move
【文件预览】:
docopt.rb-master
----.gitignore(19B)
----.travis.yml(150B)
----LICENSE(1KB)
----examples()
--------naval_fate.rb(652B)
--------counted_example.rb(457B)
--------any_options_example.rb(609B)
--------example_options.rb(2KB)
--------git_example.rb(1KB)
--------calculator.rb(337B)
--------odd_even_example.rb(281B)
--------quick_example.rb(337B)
----README.md(6KB)
----docopt.gemspec(4KB)
----lib()
--------docopt.rb(17KB)
----Gemfile(28B)
----Rakefile(4KB)
----test()
--------language_agnostic_tester.py(2KB)
--------testee.rb(206B)
--------test_docopt.rb(286B)
--------testcases.docopt(10KB)

网友评论