plugins/commands/cap/command.rb in vagrant-unbundled-2.2.10.0 vs plugins/commands/cap/command.rb in vagrant-unbundled-2.2.14.0

- old
+ new

@@ -25,10 +25,14 @@ o.separator "" o.on("--check", "Only checks for a capability, does not execute") do |f| options[:check] = f end + + o.on("-t", "--target=TARGET", "Target guest to run against (if applicable)") do |t| + options[:target] = t + end end # Parse the options argv = parse_options(opts) return if !argv @@ -43,10 +47,10 @@ # Get the proper capability host to check cap_host = nil if type == :host cap_host = @env.host else - with_target_vms([]) do |vm| + with_target_vms(options[:target] || []) do |vm| cap_host = case type when :provider vm.provider when :guest vm.guest