Sha256: d0ea9582c949c53c50de877c647df32874ec7b772ce9a19017dd65dd263f9651
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
require "optparse" module Hisyo module CLI def self.run(argv) Hisyo.generate_project parse_options(argv) end def self.parse_options(argv) options = {} OptionParser.new do |opts| opts.on('-n', '--dry-run', 'Do not actually run'){|v| options[:dryrun] = true} opts.on('-v', '--verbose', 'Verbose mode'){|v| options[:verbose] = true} opts.on('-r VAL', '--root=VAL', 'Application root directory'){|v| options[:root] = v} opts.parse!(argv) end options end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hisyo-0.1.0 | lib/hisyo/cli.rb |