diff --git a/cmd/opts/opts.go b/cmd/opts/opts.go index 955ba3394..12462ea4d 100644 --- a/cmd/opts/opts.go +++ b/cmd/opts/opts.go @@ -1019,7 +1019,7 @@ type SCPOpts struct { } type SCPArgs struct { - Paths []string `positional-arg-name:"PATH"` + Paths []string `positional-arg-name:"PATH" description:"Strings referencing remote (e.g. \":/some/remote/path\" -- \"user@host\" may be omitted) or local paths (e.g. \"./some/local/path\"). To target specific instances, a bosh instance selector (instance-group/id, e.g. router/1) can be used in place of host, e.g. 'bosh scp router/1:/path/on/instance /tmp/local/path'. See CLI documentation for more examples."` } type GatewayFlags struct { diff --git a/cmd/opts/opts_test.go b/cmd/opts/opts_test.go index af38c7bef..1ad6ef971 100644 --- a/cmd/opts/opts_test.go +++ b/cmd/opts/opts_test.go @@ -2912,7 +2912,7 @@ var _ = Describe("Opts", func() { Describe("Paths", func() { It("contains desired values", func() { - Expect(getStructTagForName("Paths", opts)).To(Equal(`positional-arg-name:"PATH"`)) + Expect(getStructTagForName("Paths", opts)).To(ContainSubstring(`positional-arg-name:"PATH"`)) }) }) })