File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -145,8 +145,9 @@ $ go run *.go --cluster-ip <boostrap_host>
145
145
```
146
146
147
147
You always need to supply at least one IP address or hostname with the
148
- ` --cluster-ip ` argument. If are running solo, or are the first member, this can
149
- be your own hostname. You may specify the argument multiple times to have
148
+ ` --cluster-ip ` argument (or via the ` SIDECAR_SEEDS ` environment variable).
149
+ If are running solo, or are the first member, this can be your own
150
+ hostname. You may specify the argument multiple times to have
150
151
multiple hosts. It is recommended to use more than one when possible.
151
152
152
153
Note: ` --cluster-ip ` will overwrite the values passed into the ` SIDECAR_SEEDS ` environment variable.
Original file line number Diff line number Diff line change @@ -28,13 +28,14 @@ func parseCommandLine() *CliOpts {
28
28
app := kingpin .New ("sidecar" , "" )
29
29
30
30
opts .AdvertiseIP = app .Flag ("advertise-ip" , "The address to advertise to the cluster" ).Short ('a' ).String ()
31
- opts .ClusterIPs = app .Flag ("cluster-ip" , "The cluster seed addresses" ).Required (). Short ('c' ).NoEnvar ().Strings ()
31
+ opts .ClusterIPs = app .Flag ("cluster-ip" , "The cluster seed addresses" ).Short ('c' ).NoEnvar ().Strings ()
32
32
opts .ClusterName = app .Flag ("cluster-name" , "The cluster we're part of" ).Short ('n' ).String ()
33
33
opts .CpuProfile = app .Flag ("cpuprofile" , "Enable CPU profiling" ).Short ('p' ).Bool ()
34
34
opts .Discover = app .Flag ("discover" , "Method of discovery" ).Short ('d' ).NoEnvar ().Strings ()
35
35
opts .LoggingLevel = app .Flag ("logging-level" , "Set the logging level" ).Short ('l' ).String ()
36
36
37
- app .Parse (os .Args [1 :])
37
+ _ , err := app .Parse (os .Args [1 :])
38
+ exitWithError (err , "Failed to parse CLI opts" )
38
39
39
40
return & opts
40
41
}
You can’t perform that action at this time.
0 commit comments