Class: Pod::Command::Vemars

Inherits:
Pod::Command show all
Defined in:
lib/cocoapods-vemars/command/vemars.rb,
lib/cocoapods-vemars/command/vemars/patch.rb,
lib/cocoapods-vemars/command/vemars/create.rb,
lib/cocoapods-vemars/command/vemars/prompt.rb,
lib/cocoapods-vemars/command/vemars/baselines.rb,
lib/cocoapods-vemars/command/vemars/components.rb

Direct Known Subclasses

Baselines, Components, Create, Patch, Prompt

Defined Under Namespace

Classes: Baselines, Components, Create, Patch, Prompt

Class Method Summary collapse

Class Method Details

.parse(argv) ⇒ Object

解析命令别名



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/cocoapods-vemars/command/vemars.rb', line 20

def self.parse(argv)
  expanded_alias = argv.option('expanded-alias')
  cmd = super(argv)
  if cmd.class == Pod::Command::Vemars
    if !expanded_alias.blank? && (arg = argv.shift_argument)
      require 'shellwords'
      new_argv = expanded_alias.shellsplit + argv.remainder
      cmd = super(CLAide::ARGV.coerce(new_argv))
    end
  end
  cmd
end