From 358d5bdc33d2dca069a72585c6f374e08498e91c Mon Sep 17 00:00:00 2001 From: Suyeol Jeon Date: Thu, 7 May 2015 01:18:53 +0900 Subject: [PATCH] Remove optparser --- cocoamods.rb | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/cocoamods.rb b/cocoamods.rb index 2a85bd4..cf51d2b 100644 --- a/cocoamods.rb +++ b/cocoamods.rb @@ -1,6 +1,5 @@ #!/usr/bin/env ruby -require 'optparse' require 'Xcodeproj' @@ -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