bin/opensource in opensource-0.6.1 vs bin/opensource in opensource-0.6.2
- old
+ new
@@ -10,15 +10,15 @@
opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} OPTIONS"
opts.separator ''
opts.separator 'Specific options:'
opts.on('-s', '--setup', 'Setup user credentials in ~/.osrc file') do |s|
- OpenSource::Owner.set_credentials
+ OpenSource.setup_owner_credentails
exit
end
- opts.on('-l', '--license LICENSE', OpenSource::LICENSES, "LICENSE can be #{OpenSource::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
@@ -40,10 +40,10 @@
begin
option_parser.parse!
if options.empty?
puts option_parser
- exit 1
+ exit 0
end
OpenSource::License.new(options).process
rescue OpenSource::Error => e
# TODO: Make sure the above call raises only OpenSource::Error