Class: VagrantPlugins::DevCommands::ParamParser

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/devcommands/param_parser.rb

Overview

Command Parameter Parser

Instance Method Summary collapse

Instance Method Details

#parse!(command, argv) ⇒ Object



9
10
11
12
13
14
15
16
17
# File 'lib/vagrant/devcommands/param_parser.rb', line 9

def parse!(command, argv)
  return {} if command.flags.empty? && command.parameters.empty?

  params = parse_argv(command, argv)
  params = unalias_parameters(command, params)
  params = validate_parameters(command, params)
  params = escape_parameters(command, params)
  wrap_parameters(command, params)
end