Rename cap command 'target' to 'target-guest'

the target name is already used by the go cli
This commit is contained in:
sophia 2021-10-20 16:18:17 -05:00 committed by Paul Hinze
parent b1f495315e
commit c6070c69db
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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)