Sha256: ff6e3c46c47ead33b4f2ab60b099f7e332be09e050d9402fc392912611aeda8b
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 Bytes
Contents
require File.expand_path("../../lib/docopt.rb", __FILE__) doc = <<DOCOPT Usage: #{__FILE__} --help #{__FILE__} -v... #{__FILE__} go [go] #{__FILE__} (--path=<path>)... #{__FILE__} <file> <file> Try: #{__FILE__} -vvvvvvvvvv #{__FILE__} go go #{__FILE__} --path ./here --path ./there #{__FILE__} this.txt that.txt DOCOPT begin require "pp" pp Docopt::docopt(doc) rescue Docopt::Exit => e puts e.message end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
docopt-0.6.1 | examples/counted_example.rb |
docopt-0.6.0 | examples/counted_example.rb |
wooga_docopt-0.6.0.1 | examples/counted_example.rb |
docopt-0.5.0 | examples/counted_example.rb |