Sha256: a739c1e0ce211c9ac1a6a17ceb1b70274c6a6b9616586b89d3d1302b521a7c3a
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 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'){|v| options[:verbose] = true} opts.on('-r VAL', '--root=VAL', 'copy to files dir'){|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.0.3 | lib/hisyo/cli.rb |