lib/cocoapods-ykutility/command/create.rb in cocoapods-ykutility-2.0.6 vs lib/cocoapods-ykutility/command/create.rb in cocoapods-ykutility-2.0.7
- old
+ new
@@ -20,11 +20,11 @@
]
def self.options
[
['--language=LANGUAGE', 'Language [ ObjC / Swift ]'],
- ['--no-demo', 'Without a demo application for your library'],
+ ['--nodemo', 'Without a demo application for your library'],
['--author=AUTHOR', 'Author'],
['--email=EMAIL', 'Email'],
['--prefix=PREFIX', 'Prefix header'],
['--pod-path=PATH', 'Pod created at path'],
['--business', 'With service/router register template'],
@@ -34,10 +34,11 @@
def initialize(argv)
@config = YKPod::YKCreatePodConfig.new()
@config.name = argv.shift_argument
@config.language = (["objc", "oc"].include? argv.option('language', "swift").downcase) ? "objc" : "swift"
- @config.with_demo = !argv.flag?('no-demo', false)
+ nodemo = argv.flag?('nodemo', false)
+ @config.with_demo = !nodemo
@config.with_register = argv.flag?('business', false)
author = argv.option('author', open("|git config --global user.name").gets)
author = author.blank? ? "defualt_author" : author
@config.author = author.strip.gsub('.', '')