bin/opensource in opensource-0.3.5 vs bin/opensource in opensource-0.3.6

- old
+ new

@@ -4,20 +4,15 @@ require 'optparse' require_relative '../lib/opensource' options = {} -puts Dir.pwd -LICENSES = Dir.new("#{Dir.pwd}/templates").map do |filename| - File.basename(filename, '.erb') if !['.', '..'].include?(filename) -end.compact - OptionParser.new do |opts| opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} OPTIONS" opts.separator '' opts.separator 'Specific options:' - opts.on('-l', '--license LICENSE', LICENSES, "LICENSE can be #{LICENSES.join('|')}") do |l| + opts.on('-l', '--license LICENSE', Opensource::LICENSES, "LICENSE can be #{Opensource::LICENSES.join('|')}") do |l| options[:license] = l end opts.on('-a', '--append README', 'Append LICENSE content to README file') do |a| options[:append] = a