bin/binbundle in binbundle-1.0.5 vs bin/binbundle in binbundle-1.0.8

- old
+ new

@@ -10,11 +10,11 @@ sudo: false, user_install: false } optparse = OptionParser.new do |opts| - opts.banner = "Usage: #{File.basename(__FILE__)} [options]" + opts.banner = "Usage: #{File.basename(__FILE__)} [options] [bundle|install]" opts.on('--[no-]versions', 'Include version info in output (default true)') do |opt| options[:include_version] = opt end @@ -37,14 +37,10 @@ opts.on('-v', '--version', 'Display version') do puts "#{File.basename(__FILE__)} v#{Binbundle::VERSION}" Process.exit 0 end - opts.on('--install', 'Run bundle script') do - options[:install] = true - end - opts.on('-h', '--help', 'Display this screen') do puts opts exit end end @@ -56,10 +52,10 @@ Process.exit 1 end gb = Binbundle::GemBins.new(options) -options[:install] = true if ARGV.count.positive? && ARGV[0] =~ /^inst/ +options[:install] = true if ARGV.count.positive? && ARGV[0] =~ /^(inst|rest)/ if options[:install] gb.install else gb.generate