lib/cocoapods-jxedt/command/binary/command/code.rb in cocoapods-jxedt-0.0.14 vs lib/cocoapods-jxedt/command/binary/command/code.rb in cocoapods-jxedt-0.0.15

- old
+ new

@@ -1,30 +1,31 @@ module Pod class Command class JxedtCommand < Command class Binary < JxedtCommand class Code < Binary - self.summary = 'binary and source code linked.' + self.summary = '创建源码链接' self.description = <<-DESC - binary and source code linked. + 创建源码链接\n + 在'/Users/cocoapods-jxedt'目录下创建源码的链接,用于二进制调试 DESC self.command = 'code' self.arguments = [ ] def self.options [ - ['--link', 'link source code.'], - ['--unlink', 'Remove source code linked.'], + ['--link', '创建源码软链接'], + ['--unlink', '删除软链接'], ] end def initialize(argv) @link = argv.flag?('link', false) @unlink = argv.flag?('unlink', false) super end def validate! - help! "Please enter the necessary options." unless @link || @unlink + help! "至少要添加一个选项,'--link'或'--unlink'" unless @link || @unlink super end def run podfile = Pod::Config.instance.podfile \ No newline at end of file