Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/opts/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\"). See CLI documentation for more examples."`
Comment thread
rkoster marked this conversation as resolved.
Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually IMHO I would rather name it differently:
Usage:
bosh [OPTIONS] scp [scp-OPTIONS] source ... target

The same way a typical scp command would also describe it. I see it is technically one array, but it better describes how it can actually be used

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ragaskar do you have any opinion on this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ragaskar - are you ok with switching the the scp style documentation, instead of the example-based version in this PR?

}

type GatewayFlags struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/opts/opts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`))
})
})
})
Expand Down
Loading