Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Commit

Permalink
Remove optparser
Browse files Browse the repository at this point in the history
  • Loading branch information
devxoul committed May 6, 2015
1 parent e3a4cc8 commit 358d5bd
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions cocoamods.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby

require 'optparse'
require 'Xcodeproj'


Expand Down Expand Up @@ -121,24 +120,9 @@ def generate_project
end


opt_parser = OptionParser.new do |opt|
opt.banner = 'Usage: cocoapods COMMAND [OPTIONS]'
opt.separator ''
opt.separator 'Commands'
opt.separator ' install: install dependencies'
opt.separator ''
opt.separator 'Options'

opt.on('-h', '--help', 'show this help message.') do
puts opt_parser
end
end

opt_parser.parse!

case ARGV[0]
when 'install'
install
else
puts opt_parser
puts 'Usage: cocoamods install'
end

0 comments on commit 358d5bd

Please sign in to comment.