@@ -73,11 +73,16 @@ struct Args {
73
73
introspection : bool ,
74
74
75
75
/// Enable use of uplink to get the schema and persisted queries (requires APOLLO_KEY and APOLLO_GRAPH_REF)
76
- #[ arg( long, short = 'u' ) ]
76
+ #[ arg(
77
+ long,
78
+ short = 'u' ,
79
+ requires = "apollo_key" ,
80
+ requires = "apollo_graph_ref"
81
+ ) ]
77
82
uplink : bool ,
78
83
79
- /// Expose a tool to open queries in Apollo Explorer (requires APOLLO_KEY and APOLLO_GRAPH_REF)
80
- #[ arg( long, short = 'x' ) ]
84
+ /// Expose a tool to open queries in Apollo Explorer (requires APOLLO_GRAPH_REF)
85
+ #[ arg( long, short = 'x' , requires = "apollo_graph_ref" ) ]
81
86
explorer : bool ,
82
87
83
88
/// Operation files to expose as MCP tools
@@ -117,7 +122,7 @@ struct Args {
117
122
http_port : Option < u16 > ,
118
123
119
124
/// collection id to expose as MCP tools (requires APOLLO_KEY)
120
- #[ arg( long, conflicts_with_all( [ "operations" , "manifest" ] ) ) ]
125
+ #[ arg( long, conflicts_with_all( [ "operations" , "manifest" ] ) , requires = "apollo_key" ) ]
121
126
collection : Option < String > ,
122
127
123
128
/// The endpoints (comma separated) polled to fetch the latest supergraph schema.
@@ -129,11 +134,11 @@ struct Args {
129
134
apollo_registry_url : Option < String > ,
130
135
131
136
/// Your Apollo key.
132
- #[ clap( skip = std :: env :: var ( "APOLLO_KEY" ) . ok ( ) ) ]
137
+ #[ clap( env = "APOLLO_KEY" , long ) ]
133
138
apollo_key : Option < String > ,
134
139
135
140
/// Your Apollo graph reference.
136
- #[ clap( skip = std :: env :: var ( "APOLLO_GRAPH_REF" ) . ok ( ) ) ]
141
+ #[ clap( env = "APOLLO_GRAPH_REF" , long ) ]
137
142
apollo_graph_ref : Option < String > ,
138
143
}
139
144
0 commit comments