Sha256: 1c58b18fb155e5da4d661d8cac03520c1d92b56be338e5ac299cb8a5b2a6072c
Contents?: true
Size: 509 Bytes
Versions: 3
Compression:
Stored size: 509 Bytes
Contents
require 'optparse' module <%= module_name %> class Application def initialize @options = OptionParser.new do |opts| # -h, --help, -v, --version are built into OptionParser # Try `<%= name %> --version=all` as you require more libraries! opts.version = <%= module_name %>::VERSION end end def run(argv) begin @options.parse(argv) rescue OptionParser::ParseError @options.abort($!) end # Have at it! end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoe-0.6.2 | data/shoe/templates/application.erb |
shoe-0.6.1 | data/shoe/templates/application.erb |
shoe-0.6.0 | data/shoe/templates/application.erb |