Skip to content

Commit 815eaf4

Browse files
committed
Rename confusing flag
1 parent 907e32e commit 815eaf4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cmd/siph/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var (
3636
serverWsPort = server.Flag("ws-port", "WebSockets port to run in Server mode").Short('w').Int()
3737

3838
client = app.Command("client", "Stream output to a server")
39-
clientAddress = client.Flag("address", "Server address").Default("127.0.0.1:1200").String()
39+
host = client.Flag("address", "Server address").Default("127.0.0.1:1200").String()
4040
clientID = client.Flag("id", "ID given to this stream").Default("").String()
4141
clientNoOutput = client.Flag("no-output", "Don't emit any output. Siph re-emits its stdin output by default").Bool()
4242
)
@@ -81,11 +81,11 @@ func main() {
8181
case client.FullCommand():
8282
consumerOpts := &siphon.ConsumerOptions{
8383
Id: *clientID,
84-
Address: *clientAddress,
84+
Address: *host,
8585
EmitOutput: !(*clientNoOutput),
8686
}
8787

88-
conn, connErr := getUDPAddress(*clientAddress)
88+
conn, connErr := getUDPAddress(*host)
8989
if connErr != nil {
9090
fmt.Fprintln(os.Stderr, connErr)
9191
os.Exit(ExitCodeError)

0 commit comments

Comments
 (0)