class Vagrant::Util::MapCommandOptions
Public Class Methods
map_to_command_options(map, cmd_flag="--")
click to toggle source
Given a hash map of user specified argments, will generate a list. Set the key to the command flag, and the value to it's value. If the value is boolean (true), only the flag is added. eg. {a: “opt-a”, b: true} -> [“–a”, “opt-a”, “–b”]
@param [Hash] map of commands @param [String] string prepended to cmd line flags (keys)