-
Notifications
You must be signed in to change notification settings - Fork 69
Closed as not planned
Description
By using the flag, --input-port,
cli/cmd/dependabot/internal/cmd/update.go
Line 140 in 97480a2
| cmd.Flags().IntVar(&flags.inputServerPort, "input-port", 0, "port to use for securely passing input to the updater") |
we end up in a situation with both
cli/cmd/dependabot/internal/cmd/update.go
Line 149 in 97480a2
| hasArguments := len(cmd.Flags().Args()) > 0 |
and
cli/cmd/dependabot/internal/cmd/update.go
Line 150 in 97480a2
| hasServer := flags.inputServerPort != 0 |
being true at the same time, as a consequence of the use of the flag.
This means that using the flag will always result in an error.
cli/cmd/dependabot/internal/cmd/update.go
Line 160 in 97480a2
| return nil, errors.New("can only use one of: input file, arguments, server, or stdin") |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels