Rename cap command 'target' to 'target-guest'
the target name is already used by the go cli
This commit is contained in:
parent
b1f495315e
commit
c6070c69db
@ -28,9 +28,10 @@ module VagrantPlugins
|
||||
options[:check] = f
|
||||
end
|
||||
|
||||
# o.on("-t", "--target=TARGET", "Target guest to run against (if applicable)") do |t|
|
||||
# options[:target] = t
|
||||
# end
|
||||
# TODO: Rename this back to `target` to maintain api
|
||||
o.on("-t", "--target-guest=TARGET", "Target guest to run against (if applicable)") do |t|
|
||||
options[:target] = t
|
||||
end
|
||||
end
|
||||
|
||||
# Parse the options
|
||||
|
||||
@ -49,7 +49,7 @@ describe VagrantPlugins::CommandCap::Command do
|
||||
end
|
||||
|
||||
context "runs against target vm" do
|
||||
let(:argv) { ["provider", "foo", "--target=dummy"] }
|
||||
let(:argv) { ["provider", "foo", "--target-guest=dummy"] }
|
||||
let(:cap) {
|
||||
Class.new do
|
||||
def self.foo(m)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user