Skip to content

Commit fb1abe2

Browse files
authored
Merge pull request #693 from cloudfoundry/improve_help_scp
2 parents d182091 + 9fccd54 commit fb1abe2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/opts/opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ type SCPOpts struct {
10191019
}
10201020

10211021
type SCPArgs struct {
1022-
Paths []string `positional-arg-name:"PATH"`
1022+
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."`
10231023
}
10241024

10251025
type GatewayFlags struct {

cmd/opts/opts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2912,7 +2912,7 @@ var _ = Describe("Opts", func() {
29122912

29132913
Describe("Paths", func() {
29142914
It("contains desired values", func() {
2915-
Expect(getStructTagForName("Paths", opts)).To(Equal(`positional-arg-name:"PATH"`))
2915+
Expect(getStructTagForName("Paths", opts)).To(ContainSubstring(`positional-arg-name:"PATH"`))
29162916
})
29172917
})
29182918
})

0 commit comments

Comments
 (0)