Skip to content

Commit

Permalink
rename port flag
Browse files Browse the repository at this point in the history
  • Loading branch information
slamdev committed May 23, 2020
1 parent 86d3e3b commit e30d1ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/listenCmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var listenCmd = &cobra.Command{
Use: "listen",
Short: "Listen for events",
RunE: func(cmd *cobra.Command, _ []string) error {
port, err := cmd.Flags().GetInt("service-port")
port, err := cmd.Flags().GetInt("svc-port")
if err != nil {
return fmt.Errorf("failed to get %v flag value. %w", "port", err)
}
Expand Down

0 comments on commit e30d1ec

Please sign in to comment.