@@ -23,29 +23,34 @@ func main() {
2323 Name : "start" ,
2424 Flags : []cli.Flag {
2525 & cli.IntFlag {
26- Name : "port" ,
27- Usage : "port to serve requests on" ,
28- Value : 8080 ,
26+ Name : "port" ,
27+ Value : 8080 ,
28+ EnvVars : []string {"SOMEGUY_PORT" },
29+ Usage : "port to serve requests on" ,
2930 },
3031 & cli.BoolFlag {
31- Name : "accelerated-dht" ,
32- Usage : "run the accelerated DHT client" ,
33- Value : true ,
32+ Name : "accelerated-dht" ,
33+ Value : true ,
34+ EnvVars : []string {"SOMEGUY_ACCELERATED_DHT" },
35+ Usage : "run the accelerated DHT client" ,
3436 },
3537 & cli.StringSliceFlag {
36- Name : "provider-endpoints" ,
37- Usage : "other Delegated Routing V1 endpoints to proxy provider requests to" ,
38- Value : cli .NewStringSlice (cidContactEndpoint ),
38+ Name : "provider-endpoints" ,
39+ Value : cli .NewStringSlice (cidContactEndpoint ),
40+ EnvVars : []string {"SOMEGUY_PROVIDER_ENDPOINTS" },
41+ Usage : "other Delegated Routing V1 endpoints to proxy provider requests to" ,
3942 },
4043 & cli.StringSliceFlag {
41- Name : "peer-endpoints" ,
42- Usage : "other Delegated Routing V1 endpoints to proxy peer requests to" ,
43- Value : cli .NewStringSlice (),
44+ Name : "peer-endpoints" ,
45+ Value : cli .NewStringSlice (),
46+ EnvVars : []string {"SOMEGUY_PEER_ENDPOINTS" },
47+ Usage : "other Delegated Routing V1 endpoints to proxy peer requests to" ,
4448 },
4549 & cli.StringSliceFlag {
46- Name : "ipns-endpoints" ,
47- Usage : "other Delegated Routing V1 endpoints to proxy IPNS requests to" ,
48- Value : cli .NewStringSlice (),
50+ Name : "ipns-endpoints" ,
51+ Value : cli .NewStringSlice (),
52+ EnvVars : []string {"SOMEGUY_IPNS_ENDPOINTS" },
53+ Usage : "other Delegated Routing V1 endpoints to proxy IPNS requests to" ,
4954 },
5055 },
5156 Action : func (ctx * cli.Context ) error {
@@ -57,13 +62,13 @@ func main() {
5762 Flags : []cli.Flag {
5863 & cli.StringFlag {
5964 Name : "endpoint" ,
60- Usage : "the Delegated Routing V1 endpoint to ask" ,
6165 Value : cidContactEndpoint ,
66+ Usage : "the Delegated Routing V1 endpoint to ask" ,
6267 },
6368 & cli.BoolFlag {
6469 Name : "pretty" ,
65- Usage : "output data in a prettier format that may convey less information" ,
6670 Value : false ,
71+ Usage : "output data in a prettier format that may convey less information" ,
6772 },
6873 },
6974 Subcommands : []* cli.Command {
0 commit comments